]> git.sesse.net Git - mlt/commitdiff
fix memory leak (coverity-709382)
authorDan Dennedy <dan@dennedy.org>
Mon, 23 Jul 2012 00:03:26 +0000 (17:03 -0700)
committerDan Dennedy <dan@dennedy.org>
Mon, 23 Jul 2012 00:03:26 +0000 (17:03 -0700)
src/modules/core/filter_imageconvert.c

index 1dfc8b9c90bbb37ee761ed5f1b0e90dcdcf4875b..001618575328ad389f7cbf0f0758837e4db34031 100644 (file)
@@ -337,6 +337,8 @@ static int convert_image( mlt_frame frame, uint8_t **buffer, mlt_image_format *f
                                         ? mlt_pool_alloc( width * height ) : NULL;
                        if ( requested_format == mlt_image_rgb24a || requested_format == mlt_image_opengl )
                        {
+                               if ( alpha )
+                                       mlt_pool_release( alpha );
                                alpha = mlt_frame_get_alpha_mask( frame );
                                mlt_properties_get_data( properties, "alpha", &alpha_size );
                        }