avformat/mov: free HEIFItem.name when cleaning items in mov_read_trak

Fixes memleaks.

Signed-off-by: James Almer <jamrial@gmail.com>
release/7.0
James Almer 10 months ago
parent 61afe4d98c
commit 1e7ba76562
  1. 2
      libavformat/mov.c

@ -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--) { for (int i = c->nb_heif_item - 1; i >= 0; i--) {
HEIFItem *item = &c->heif_item[i]; HEIFItem *item = &c->heif_item[i];
av_freep(&item->name);
if (!item->st) if (!item->st)
continue; continue;

Loading…
Cancel
Save