diff options
author | John Stebbins <[email protected]> | 2016-12-16 13:14:11 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-12-17 07:28:51 -0800 |
commit | 25f6aad84fbf8925dc830e70302761da0f95ffe8 (patch) | |
tree | 5e4c6d4a16fa66e1641088e5a4cf7e63ea33c4a1 /libhb | |
parent | 0deca32324ae5f1741360796a2c76f5249ca04e4 (diff) |
fix memory leaks
The series of commits starting with Tim's
"libav: remove our custom QSV wrapper."
Closes #46, closes #276, and closes #416.
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/encavcodec.c | 2 | ||||
-rw-r--r-- | libhb/encavcodecaudio.c | 1 | ||||
-rw-r--r-- | libhb/scan.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index e90d2bad0..d7a751e6d 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -543,7 +543,7 @@ static void get_packets( hb_work_object_t * w, hb_buffer_list_t * list ) out = process_delay_list(pv, out); hb_buffer_list_append(list, out); - + av_packet_unref(&pkt); } } diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c index f6779fe31..3a6737fc5 100644 --- a/libhb/encavcodecaudio.c +++ b/libhb/encavcodecaudio.c @@ -373,6 +373,7 @@ static void get_packets( hb_work_object_t * w, hb_buffer_list_t * list ) out->s.frametype = HB_FRAME_AUDIO; hb_buffer_list_append(list, out); + av_packet_unref(&pkt); } } diff --git a/libhb/scan.c b/libhb/scan.c index 76e173210..21aa4678c 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -200,7 +200,7 @@ static void ScanFunc( void * _data ) { hb_title_close( &title ); hb_log( "scan: unrecognized file type" ); - return; + goto finish; } } |