From 2d377059216d22836cca7e18c952fea03672de9b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 8 Oct 2023 13:25:53 +0200 Subject: [PATCH] fix a memory leak --- source/core/actorinfo.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/core/actorinfo.h b/source/core/actorinfo.h index df1b4df15..57674d5c9 100644 --- a/source/core/actorinfo.h +++ b/source/core/actorinfo.h @@ -63,6 +63,10 @@ struct FActorInfo DefaultMove = other.DefaultMove; DefaultMoveflags = other.DefaultMoveflags; } + ~FActorInfo() + { + M_Free(StateList); + } void ResolveTextures(const char* clsname, DCoreActor *defaults);