summaryrefslogtreecommitdiffstats
path: root/libhb/common.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-08-02 11:21:42 -0700
committerJohn Stebbins <[email protected]>2019-08-11 15:36:40 -0700
commit692ac873ccf2ea3a5091566ed9e2d027d4825eda (patch)
tree7e37a15bcab54a5450b22eaa6ba06af7bfeddcc5 /libhb/common.c
parentf7e706149e66d826e137cbf5d2c76501bdee73c5 (diff)
a few fixes for audio track name handling
fixes a memory leak makes name const
Diffstat (limited to 'libhb/common.c')
-rw-r--r--libhb/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 1602b4ed0..e21590fa2 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -4685,8 +4685,8 @@ void hb_audio_close( hb_audio_t **audio )
{
if ( audio && *audio )
{
- free((*audio)->config.in.name);
- free((*audio)->config.out.name);
+ free((char*)(*audio)->config.in.name);
+ free((char*)(*audio)->config.out.name);
free(*audio);
*audio = NULL;
}