Fix crash on exit

openmw-35
scrawl 10 years ago
parent 51c05264b0
commit d1b5956a98

@ -352,6 +352,9 @@ namespace MWGui
WindowManager::~WindowManager() WindowManager::~WindowManager()
{ {
MyGUI::PointerManager::getInstance().eventChangeMousePointer.clear();
MyGUI::InputManager::getInstance().eventChangeKeyFocus.clear();
delete mConsole; delete mConsole;
delete mMessageBoxManager; delete mMessageBoxManager;
delete mHud; delete mHud;
@ -385,7 +388,6 @@ namespace MWGui
delete mMerchantRepair; delete mMerchantRepair;
delete mRepair; delete mRepair;
delete mSoulgemDialog; delete mSoulgemDialog;
delete mCursorManager;
delete mRecharge; delete mRecharge;
delete mCompanionWindow; delete mCompanionWindow;
delete mHitFader; delete mHitFader;
@ -394,6 +396,8 @@ namespace MWGui
delete mBlindnessFader; delete mBlindnessFader;
delete mDebugWindow; delete mDebugWindow;
delete mCursorManager;
cleanupGarbage(); cleanupGarbage();
delete mGuiManager; delete mGuiManager;

Loading…
Cancel
Save