summaryrefslogtreecommitdiffstats
path: root/libhb/common.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-07-19 17:36:12 +0000
committerjstebbins <[email protected]>2011-07-19 17:36:12 +0000
commit244f212aa465806e34e9c4640afffbe2dccefc4a (patch)
treec88b83dabd6f233f87907f45678314c66f195b7f /libhb/common.c
parent4c30ccadee5199d8c9bd0a4c4d38b50216cac409 (diff)
libhb: plug a few memory leaks
Noticed when debugging a memory corruption issue with valgrind git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4122 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.c')
-rw-r--r--libhb/common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 4acc293e2..3497a24f4 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -1131,6 +1131,11 @@ void hb_title_close( hb_title_t ** _t )
free( t->metadata );
}
+ if ( t->video_codec_name )
+ {
+ free( t->video_codec_name );
+ }
+
free( t );
*_t = NULL;
}