summaryrefslogtreecommitdiff
path: root/libavcodec/mlp_parser.c
diff options
context:
space:
mode:
authorJai Menon <realityman@gmx.net>2010-02-23 16:54:05 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2010-02-23 16:54:05 +0000
commit8790961d7eda786f624317312c6ecc51945865e3 (patch)
tree8b2f5ca12b133c3c041f959d5d84d64600a6a6a9 /libavcodec/mlp_parser.c
parentd7a4961e5353ff983bd7b53acf56ab8076dfaeba (diff)
downloadffmpeg-8790961d7eda786f624317312c6ecc51945865e3.tar.gz
mlp_parser: Fix memleak.
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
Diffstat (limited to 'libavcodec/mlp_parser.c')
-rw-r--r--libavcodec/mlp_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c
index 65f5dc5178..716e9e9b2a 100644
--- a/libavcodec/mlp_parser.c
+++ b/libavcodec/mlp_parser.c
@@ -293,5 +293,5 @@ AVCodecParser mlp_parser = {
sizeof(MLPParseContext),
mlp_init,
mlp_parse,
- NULL,
+ ff_parse_close,
};