Fix crash on exit

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

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

Loading…
Cancel
Save