]> git.sesse.net Git - mlt/commitdiff
fix memory leak when using filter_only with region transition
authorDan Dennedy <dan@dennedy.org>
Sat, 23 Jun 2012 23:02:47 +0000 (16:02 -0700)
committerDan Dennedy <dan@dennedy.org>
Sat, 23 Jun 2012 23:02:47 +0000 (16:02 -0700)
src/modules/core/transition_region.c

index 5e8c1b0cc773a21c049a684169121f316a6d9473..dfdb83cb0fd31a14dcd2d37c366b170dd29565b1 100644 (file)
@@ -302,7 +302,9 @@ static int transition_get_image( mlt_frame frame, uint8_t **image, mlt_image_for
                // by compositing filtered frame over itself
                if ( mlt_properties_get_int( properties, "filter_only" ) )
                {
+                       char *name = mlt_properties_get( properties, "_unique_id" );
                        frame = composite_copy_region( composite, b_frame, position );
+                       mlt_properties_set_data( b_props, name, frame, 0, ( mlt_destructor )mlt_frame_close, NULL );
                }
 
                // Make sure the filter is in the correct position