summaryrefslogtreecommitdiffstats
path: root/libhb/decavcodec.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-02-12 21:38:34 +0000
committerjstebbins <[email protected]>2011-02-12 21:38:34 +0000
commit8bf55ae1a275b3576971c4596c4b0b1090902364 (patch)
tree754846425d4660147e7d658cf500359c7298866d /libhb/decavcodec.c
parent335e7e305d59063132ddae2fff76e7c6c7b02d47 (diff)
plug some memory leaks.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3797 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r--libhb/decavcodec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
index 298fba69d..612991c79 100644
--- a/libhb/decavcodec.c
+++ b/libhb/decavcodec.c
@@ -64,6 +64,7 @@
#include "downmix.h"
#include "libavcodec/audioconvert.h"
+static void flushDelayQueue( hb_work_private_t *pv );
static int decavcodecInit( hb_work_object_t *, hb_job_t * );
static int decavcodecWork( hb_work_object_t *, hb_buffer_t **, hb_buffer_t ** );
static void decavcodecClose( hb_work_object_t * );
@@ -271,6 +272,8 @@ static void closePrivData( hb_work_private_t ** ppv )
if ( pv )
{
+ flushDelayQueue( pv );
+
if ( pv->job && pv->context && pv->context->codec )
{
hb_log( "%s-decoder done: %u frames, %u decoder errors, %u drops",
@@ -291,7 +294,7 @@ static void closePrivData( hb_work_private_t ** ppv )
}
if ( pv->list )
{
- hb_list_close( &pv->list );
+ hb_list_empty( &pv->list );
}
if ( pv->buffer )
{