fix segfault in aniplayer code

This commit is contained in:
Andrei Alexeyev 2017-10-08 23:39:33 +03:00
parent e43252071c
commit 7a592899ab
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4

View file

@ -16,6 +16,7 @@ void aniplayer_create(AniPlayer *plr, Animation *ani) {
}
void aniplayer_free(AniPlayer *plr) {
plr->queuesize = 0; // prevent aniplayer_reset from messing with the queue, since we're going to wipe all of it anyway
delete_all_elements((void **)&plr->queue,delete_element);
aniplayer_reset(plr);
}