From: Maksym Veremeyenko Date: Thu, 17 Oct 2013 16:05:37 +0000 (+0300) Subject: frame leak fix X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=bacf390371b3aa674f0514fff60c37c7f5c9af1d;p=mlt frame leak fix --- diff --git a/src/modules/avformat/consumer_avformat.c b/src/modules/avformat/consumer_avformat.c index 33b3a93f..72dcaea7 100644 --- a/src/modules/avformat/consumer_avformat.c +++ b/src/modules/avformat/consumer_avformat.c @@ -2150,7 +2150,10 @@ static void *consumer_thread( void *arg ) } on_fatal_error: - + + if ( frame ) + mlt_frame_close( frame ); + // Write the trailer, if any if ( frames ) av_write_trailer( oc );