summaryrefslogtreecommitdiffstats
path: root/libhb/decdca.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/decdca.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/decdca.c')
-rw-r--r--libhb/decdca.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/decdca.c b/libhb/decdca.c
index ed86be4b7..138024a6d 100644
--- a/libhb/decdca.c
+++ b/libhb/decdca.c
@@ -302,6 +302,7 @@ static int decdcaBSInfo( hb_work_object_t *w, const hb_buffer_t *b,
if ( i >= b->size - 7 )
{
/* didn't find DCA sync */
+ dca_free( state );
return 0;
}
@@ -362,5 +363,6 @@ static int decdcaBSInfo( hb_work_object_t *w, const hb_buffer_t *b,
info->channel_map = &hb_qt_chan_map;
+ dca_free( state );
return 1;
}