From fb8123e062181c1e7342572b611454d3301404b4 Mon Sep 17 00:00:00 2001 From: Vysius Date: Sun, 17 Nov 2024 22:36:42 +0100 Subject: [PATCH] fix: destroy previewCreature widget and free variable --- modules/game_outfit/outfit.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/game_outfit/outfit.lua b/modules/game_outfit/outfit.lua index ece28278b..b13eac742 100644 --- a/modules/game_outfit/outfit.lua +++ b/modules/game_outfit/outfit.lua @@ -512,6 +512,8 @@ function destroy() showTitleCheck = nil colorBoxes = {} currentColorBox = nil + previewCreature:destroy() + previewCreature = nil if appearanceGroup then appearanceGroup:destroy() appearanceGroup = nil