Improve menu_animation_free
This commit is contained in:
parent
a85908c8f9
commit
37a8e0ef85
|
@ -255,7 +255,8 @@ void menu_animation_free(animation_t *animation)
|
|||
|
||||
for (i = 0; i < animation->size; i++)
|
||||
{
|
||||
free(animation->list[i].subject);
|
||||
if (animation->list[i].subject)
|
||||
free(animation->list[i].subject);
|
||||
}
|
||||
|
||||
free(animation->list);
|
||||
|
|
Loading…
Reference in New Issue