Skip to content

Commit 64a2e1b

Browse files
committed
fixed #2092
1 parent 50e6fd3 commit 64a2e1b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: src/isomedia/box_code_base.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -11083,10 +11083,12 @@ void gitn_box_del(GF_Box *s)
1108311083
u32 i;
1108411084
GroupIdToNameBox *ptr = (GroupIdToNameBox *)s;
1108511085
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);
11086+
if (ptr->entries) {
11087+
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);
1108811091
}
11089-
if (ptr->entries) gf_free(ptr->entries);
1109011092
gf_free(ptr);
1109111093
}
1109211094

0 commit comments

Comments
 (0)