]> git.sesse.net Git - mlt/commitdiff
+ Oops - fix for memory leak
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 29 Sep 2005 21:23:28 +0000 (21:23 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 29 Sep 2005 21:23:28 +0000 (21:23 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@836 d19143bc-622f-0410-bfdd-b5b2a6649095

mlt++/src/MltPushConsumer.cpp

index 5c70777c6c28928269f4d0fc992bb0033a56e583..7d962187ac0610d7bc37214ab542b34666ad0b56 100644 (file)
@@ -140,6 +140,7 @@ Frame *PushConsumer::construct( int size )
        Frame *frame = new Frame( f );
        uint8_t *buffer = ( uint8_t * )mlt_pool_alloc( size );
        frame->set( "image", buffer, size, mlt_pool_release );
+       mlt_frame_close( f );
        return frame;
 }