summaryrefslogtreecommitdiffstats
path: root/libhb/deca52.c
diff options
context:
space:
mode:
authorsaintdev <[email protected]>2007-03-31 06:55:02 +0000
committersaintdev <[email protected]>2007-03-31 06:55:02 +0000
commit2338338511e4b1ef3ec5e85606900a846efa2b42 (patch)
treec33957efc6c20bd8a2cab6c30bbb689b3e5b88fd /libhb/deca52.c
parent18cd105e9a40beccc264178dba69b8b89926a121 (diff)
Fix about 156,199 bytes of leaked memory.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@469 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/deca52.c')
-rw-r--r--libhb/deca52.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libhb/deca52.c b/libhb/deca52.c
index a5f312335..0664584c9 100644
--- a/libhb/deca52.c
+++ b/libhb/deca52.c
@@ -105,6 +105,9 @@ void deca52Close( hb_work_object_t * w )
{
hb_work_private_t * pv = w->private_data;
a52_free( pv->state );
+ hb_list_empty( &pv->list );
+ free( pv );
+ w->private_data = NULL;
}
/***********************************************************************