summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/bd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libhb/bd.c b/libhb/bd.c
index cd33479dd..4eb9fceb6 100644
--- a/libhb/bd.c
+++ b/libhb/bd.c
@@ -420,9 +420,7 @@ hb_title_t * hb_bd_title_scan( hb_bd_t * d, int tt, uint64_t min_duration )
goto cleanup;
fail:
- hb_list_close( &title->list_audio );
- free( title );
- title = NULL;
+ hb_title_close( &title );
cleanup:
@@ -647,6 +645,7 @@ void hb_bd_close( hb_bd_t ** _d )
}
if( d->stream ) hb_stream_close( &d->stream );
if( d->bd ) bd_close( d->bd );
+ if( d->path ) free( d->path );
free( d );
*_d = NULL;