mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/mov: free HEIFItem.name when cleaning items in mov_read_trak
Fixes memleaks. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
61afe4d98c
commit
1e7ba76562
@ -4866,6 +4866,8 @@ static int mov_read_trak(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
for (int i = c->nb_heif_item - 1; i >= 0; i--) {
|
||||
HEIFItem *item = &c->heif_item[i];
|
||||
|
||||
av_freep(&item->name);
|
||||
|
||||
if (!item->st)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user