g2meet: do not leak buffers
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 11 Jun 2013 17:09:38 +0000 (19:09 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 12 Jun 2013 07:54:45 +0000 (09:54 +0200)
libavcodec/g2meet.c

index f7a8501..43888dc 100644 (file)
@@ -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