mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
g2meet: do not leak buffers
This commit is contained in:
parent
4d960d7f60
commit
7dfc3381dd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user