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).
This commit is contained in:
Tgys 2012-08-19 01:49:13 +03:00
parent 73acc68e50
commit 3562fc6dbe
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ end
function Locales.terminate() function Locales.terminate()
installedLocales = nil installedLocales = nil
currentLocale = nil currentLocale = nil
localeComboBox:destroy()
localeComboBox = nil localeComboBox = nil
Extended.unregister(ExtendedLocales) Extended.unregister(ExtendedLocales)
disconnect(g_game, { onGameStart = onGameStart }) disconnect(g_game, { onGameStart = onGameStart })