summaryrefslogtreecommitdiffstats
path: root/libhb/enclame.c
diff options
context:
space:
mode:
authorsaintdev <[email protected]>2007-04-01 04:47:47 +0000
committersaintdev <[email protected]>2007-04-01 04:47:47 +0000
commit6aadb0780a8cab83a9cef4ff2c179c6b318669ab (patch)
treeec230a8d6c1d22aa9e1df1745f6afc948aa8d0b5 /libhb/enclame.c
parent2338338511e4b1ef3ec5e85606900a846efa2b42 (diff)
Fix several MB of memory leaks in lame, and vorbis.
6ch Vorbis doesn't seem quite ready for prime time. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@470 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/enclame.c')
-rw-r--r--libhb/enclame.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/enclame.c b/libhb/enclame.c
index c0b0f9df0..33cfa14c8 100644
--- a/libhb/enclame.c
+++ b/libhb/enclame.c
@@ -68,6 +68,13 @@ int enclameInit( hb_work_object_t * w, hb_job_t * job )
**********************************************************************/
void enclameClose( hb_work_object_t * w )
{
+ hb_work_private_t * pv = w->private_data;
+
+ lame_close( pv->lame );
+ hb_list_empty( &pv->list );
+ free( pv->buf );
+ free( pv );
+ w->private_data = NULL;
}
/***********************************************************************