Delegate cleanup

openmw-35
scrawl 10 years ago
parent bdcc3a4036
commit c093e284d9

@ -182,6 +182,10 @@ namespace MWGui
HUD::~HUD() HUD::~HUD()
{ {
mMainWidget->eventMouseLostFocus.clear();
mMainWidget->eventMouseMove.clear();
mMainWidget->eventMouseButtonClick.clear();
delete mSpellIcons; delete mSpellIcons;
} }

@ -352,8 +352,11 @@ namespace MWGui
WindowManager::~WindowManager() WindowManager::~WindowManager()
{ {
MyGUI::LanguageManager::getInstance().eventRequestTag.clear();
MyGUI::PointerManager::getInstance().eventChangeMousePointer.clear(); MyGUI::PointerManager::getInstance().eventChangeMousePointer.clear();
MyGUI::InputManager::getInstance().eventChangeKeyFocus.clear(); MyGUI::InputManager::getInstance().eventChangeKeyFocus.clear();
MyGUI::ClipboardManager::getInstance().eventClipboardChanged.clear();
MyGUI::ClipboardManager::getInstance().eventClipboardRequested.clear();
delete mConsole; delete mConsole;
delete mMessageBoxManager; delete mMessageBoxManager;

Loading…
Cancel
Save