summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
Diffstat (limited to 'libhb')
-rw-r--r--libhb/dvd.c4
-rw-r--r--libhb/dvdnav.c4
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 );