summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-07-11 17:03:14 +0000
committerjstebbins <[email protected]>2011-07-11 17:03:14 +0000
commit8afaff770fe5e5a3ce67f778aa712eeb8954252b (patch)
treeb94b4600250152b8864345dd653fc893084a69e9 /libhb
parent40b2eb6b2978b8d7e787eb98205fd2f49b307eb9 (diff)
libhb: fix a couple small memory leaks
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4102 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-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;