You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +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:
@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user