mlp_parser: Fix memleak.
authorJai Menon <realityman@gmx.net>
Tue, 23 Feb 2010 16:54:05 +0000 (16:54 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Tue, 23 Feb 2010 16:54:05 +0000 (16:54 +0000)
ff_combine_frame() is called, which allocates ParseContext->buffer if needed,
so ff_parse_close() must be called to free it.
Patch by jai.

Originally committed as revision 22005 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mlp_parser.c

index 65f5dc5..716e9e9 100644 (file)
@@ -293,5 +293,5 @@ AVCodecParser mlp_parser = {
     sizeof(MLPParseContext),
     mlp_init,
     mlp_parse,
-    NULL,
+    ff_parse_close,
 };