fix memleak in aniplayer

This commit is contained in:
laochailan 2018-05-08 18:17:18 +02:00
parent 004ef04384
commit 280b0739d8
No known key found for this signature in database
GPG key ID: 49BE98017AFBC943

View file

@ -71,6 +71,7 @@ void player_free(Player *plr) {
plr->mode->procs.free(plr);
}
aniplayer_free(&plr->ani);
ent_unregister(&plr->ent);
delete_enemy(&plr->focus_circle, plr->focus_circle);
}