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--) {
|
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…
x
Reference in New Issue
Block a user