We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50e6fd3 commit 64a2e1bCopy full SHA for 64a2e1b
src/isomedia/box_code_base.c
@@ -11083,10 +11083,12 @@ void gitn_box_del(GF_Box *s)
11083
u32 i;
11084
GroupIdToNameBox *ptr = (GroupIdToNameBox *)s;
11085
if (ptr == NULL) return;
11086
- for (i=0; i<ptr->nb_entries; i++) {
11087
- if (ptr->entries[i].name) gf_free(ptr->entries[i].name);
+ if (ptr->entries) {
+ for (i=0; i<ptr->nb_entries; i++) {
11088
+ if (ptr->entries[i].name) gf_free(ptr->entries[i].name);
11089
+ }
11090
+ gf_free(ptr->entries);
11091
}
- if (ptr->entries) gf_free(ptr->entries);
11092
gf_free(ptr);
11093
11094
0 commit comments