From f966b94b31b0878d0a00495c8eec57cb808bbd91 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Wed, 9 Sep 2009 19:16:18 -0700 Subject: [PATCH] Fix big memory leak when scrubbing. --- src/modules/sdl/consumer_sdl_audio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/sdl/consumer_sdl_audio.c b/src/modules/sdl/consumer_sdl_audio.c index 207ec843..b7982a86 100644 --- a/src/modules/sdl/consumer_sdl_audio.c +++ b/src/modules/sdl/consumer_sdl_audio.c @@ -522,9 +522,12 @@ static void *consumer_thread( void *arg ) consumer_play_video( this, frame ); pthread_cond_wait( &this->refresh_cond, &this->refresh_mutex ); } + mlt_frame_close( frame ); this->refresh_count --; pthread_mutex_unlock( &this->refresh_mutex ); } + else + mlt_frame_close( frame ); // Optimisation to reduce latency if ( speed == 1.0 ) -- 2.39.2