]> git.sesse.net Git - mlt/blobdiff - src/modules/avformat/producer_avformat.c
fix memleak if file fails to open
[mlt] / src / modules / avformat / producer_avformat.c
index d3f0884974f41a8be4cd7496a8d736ce44c89d29..263972b8744895c02b58baaaf4d32429c5914a1e 100644 (file)
@@ -199,6 +199,7 @@ mlt_producer producer_avformat_init( mlt_profile profile, const char *service, c
                                        // Clean up
                                        mlt_producer_close( producer );
                                        producer = NULL;
+                                       producer_avformat_close( self );
                                }
                                else if ( self->seekable )
                                {