]> git.sesse.net Git - mlt/commitdiff
Refix alpha channel scaling memory leak (3060324).
authorDan Dennedy <dan@dennedy.org>
Wed, 8 Sep 2010 16:58:34 +0000 (09:58 -0700)
committerDan Dennedy <dan@dennedy.org>
Wed, 8 Sep 2010 16:58:34 +0000 (09:58 -0700)
src/modules/avformat/filter_swscale.c

index 9ec35cf19c578a9dcd2fa9b45ddf35a4a8c12fca..a82b5e7ccd5d1338040e0ea9af4cc973a4029178 100644 (file)
@@ -170,6 +170,7 @@ static int filter_scale( mlt_frame this, uint8_t **image, mlt_image_format *form
        
                                // Perform the scaling
                                sws_scale( context, input.data, input.linesize, 0, iheight, output.data, output.linesize);
+                               sws_freeContext( context );
        
                                // Set it back on the frame
                                mlt_properties_set_data( MLT_FRAME_PROPERTIES( this ), "alpha", output.data[0], owidth * oheight, mlt_pool_release, NULL );