diff options
author | jstebbins <[email protected]> | 2011-07-07 23:15:48 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-07-07 23:15:48 +0000 |
commit | 2c08b3b40f0b980b29ef4a689654c46a9361e2f0 (patch) | |
tree | 46431b45ca885ce5c70955bc8bbb6966ae172bbf /libhb | |
parent | c57ab6ee2a06191cf3690a0b897244e201c2ef28 (diff) |
libhb: fix a couple small memory leaks
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4088 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/dvd.c | 4 | ||||
-rw-r--r-- | libhb/dvdnav.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/libhb/dvd.c b/libhb/dvd.c index 2a36eb4f2..36798c2c1 100644 --- a/libhb/dvd.c +++ b/libhb/dvd.c @@ -651,9 +651,7 @@ static hb_title_t * hb_dvdread_title_scan( hb_dvd_t * e, int t, uint64_t min_dur goto cleanup; fail: - hb_list_close( &title->list_audio ); - free( title ); - title = NULL; + hb_title_close( &title ); cleanup: if( vts ) ifoClose( vts ); diff --git a/libhb/dvdnav.c b/libhb/dvdnav.c index 60e1d81f0..fa69dbb5b 100644 --- a/libhb/dvdnav.c +++ b/libhb/dvdnav.c @@ -809,9 +809,7 @@ static hb_title_t * hb_dvdnav_title_scan( hb_dvd_t * e, int t, uint64_t min_dura goto cleanup; fail: - hb_list_close( &title->list_audio ); - free( title ); - title = NULL; + hb_title_close( &title ); cleanup: if( ifo ) ifoClose( ifo ); |