Stomp on memory in dialog dtors to detect bugs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6365 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
383a18396a
commit
9fa58cd856
@ -122,6 +122,7 @@ ModalDialog::~ModalDialog()
|
|||||||
GUIEngine::getGUIEnv()->removeFocus( m_irrlicht_window );
|
GUIEngine::getGUIEnv()->removeFocus( m_irrlicht_window );
|
||||||
|
|
||||||
m_irrlicht_window->remove();
|
m_irrlicht_window->remove();
|
||||||
|
m_irrlicht_window = NULL;
|
||||||
|
|
||||||
if (modalWindow == this) modalWindow = NULL;
|
if (modalWindow == this) modalWindow = NULL;
|
||||||
|
|
||||||
|
@ -59,6 +59,8 @@ public:
|
|||||||
*/
|
*/
|
||||||
ConfirmDialog(irr::core::stringw msg, IConfirmDialogListener* listener);
|
ConfirmDialog(irr::core::stringw msg, IConfirmDialogListener* listener);
|
||||||
|
|
||||||
|
~ConfirmDialog() { m_listener = NULL; }
|
||||||
|
|
||||||
virtual void onEnterPressedInternal();
|
virtual void onEnterPressedInternal();
|
||||||
|
|
||||||
GUIEngine::EventPropagation processEvent(const std::string& eventSource);
|
GUIEngine::EventPropagation processEvent(const std::string& eventSource);
|
||||||
|
Loading…
Reference in New Issue
Block a user