Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed #2092
  • Loading branch information
jeanlf committed Feb 1, 2022
1 parent 50e6fd3 commit 64a2e1b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/isomedia/box_code_base.c
Expand Up @@ -11083,10 +11083,12 @@ void gitn_box_del(GF_Box *s)
u32 i;
GroupIdToNameBox *ptr = (GroupIdToNameBox *)s;
if (ptr == NULL) return;
for (i=0; i<ptr->nb_entries; i++) {
if (ptr->entries[i].name) gf_free(ptr->entries[i].name);
if (ptr->entries) {
for (i=0; i<ptr->nb_entries; i++) {
if (ptr->entries[i].name) gf_free(ptr->entries[i].name);
}
gf_free(ptr->entries);
}
if (ptr->entries) gf_free(ptr->entries);
gf_free(ptr);
}

Expand Down

0 comments on commit 64a2e1b

Please sign in to comment.