diff --git a/source/actor.cpp b/source/actor.cpp index 755b5f4..d8c51a9 100644 --- a/source/actor.cpp +++ b/source/actor.cpp @@ -955,6 +955,8 @@ namespace actor if (act==first) first = act->next; if (act==dirty) dirty = act->next; if (act->next) act->next->prev = act->prev; + draw::freeSurface(act->surface); + if (act==selected) selected = nullptr; free(act); }