diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2013-06-11 21:09:38 +0400 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2013-06-12 11:54:45 +0400 |
commit | 7dfc3381dd039233026cbba5f3ca3d76e28be860 (patch) | |
tree | 6a49b2876e541f1954ded909de7bb8e87087b5a6 /libavcodec/g2meet.c | |
parent | 4d960d7f60f96c24e0a9bb8224c83a7cfa4f26d4 (diff) |
g2meet: do not leak buffers
Diffstat (limited to 'libavcodec/g2meet.c')
-rw-r--r-- | libavcodec/g2meet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c index f7a8501ca4..43888dc8e3 100644 --- a/libavcodec/g2meet.c +++ b/libavcodec/g2meet.c @@ -455,6 +455,8 @@ static int g2m_init_buffers(G2MContext *c) aligned_height = FFALIGN(c->tile_height, 16); av_free(c->synth_tile); av_free(c->jpeg_tile); + av_free(c->kempf_buf); + av_free(c->kempf_flags); c->synth_tile = av_mallocz(c->tile_stride * aligned_height); c->jpeg_tile = av_mallocz(c->tile_stride * aligned_height); c->kempf_buf = av_mallocz((c->tile_width + 1) * aligned_height |