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).
master
Tgys 12 years ago
parent 73acc68e50
commit 3562fc6dbe

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

Loading…
Cancel
Save