diff options
author | saintdev <[email protected]> | 2007-03-31 06:55:02 +0000 |
---|---|---|
committer | saintdev <[email protected]> | 2007-03-31 06:55:02 +0000 |
commit | 2338338511e4b1ef3ec5e85606900a846efa2b42 (patch) | |
tree | c33957efc6c20bd8a2cab6c30bbb689b3e5b88fd /libhb/scan.c | |
parent | 18cd105e9a40beccc264178dba69b8b89926a121 (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/scan.c')
-rw-r--r-- | libhb/scan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libhb/scan.c b/libhb/scan.c index 5d817c737..e969a4380 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -114,7 +114,7 @@ static void ScanFunc( void * _data ) hb_log( "scan: title %d is duplicate with title %d", title->index, title_tmp->index ); hb_list_rem( data->list_title, title ); - free( title ); + free( title ); /* This _will_ leak! */ continue; } @@ -225,6 +225,9 @@ static void ScanFunc( void * _data ) { hb_dvd_close( &data->dvd ); } + free( data->path ); + free( data ); + _data = NULL; } /*********************************************************************** |