From 3562fc6dbef132ecac69c75544c9c4d2ecd3c6a9 Mon Sep 17 00:00:00 2001 From: Tgys Date: Sun, 19 Aug 2012 01:49:13 +0300 Subject: [PATCH] Combobox wasn't getting destroyed on terminate This caused several of those comboboxes to appear next to eachother once reloading this module (whenever you'd do anything with the *ghost* comboboxes, it errors). --- modules/client_locales/locales.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/client_locales/locales.lua b/modules/client_locales/locales.lua index afdcbe6a..8e34d65b 100644 --- a/modules/client_locales/locales.lua +++ b/modules/client_locales/locales.lua @@ -70,6 +70,7 @@ end function Locales.terminate() installedLocales = nil currentLocale = nil + localeComboBox:destroy() localeComboBox = nil Extended.unregister(ExtendedLocales) disconnect(g_game, { onGameStart = onGameStart })