animations_free() leaves garbage pointer
animations_free() does not set animations pointer to NULL, sometimes causing attempt to read already freed memory.
Patch meant for S2_6 too.
animations_free() does not set animations pointer to NULL, sometimes causing attempt to read already freed memory.