From 8afaff770fe5e5a3ce67f778aa712eeb8954252b Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 11 Jul 2011 17:03:14 +0000 Subject: libhb: fix a couple small memory leaks git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4102 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/bd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libhb/bd.c') 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; -- cgit v1.2.3