Reset wxPGEditor singleton instance pointers in dtors. This is useful if wxPropertyGrid is being accessed from an external main loop.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-09-28 18:59:41 +00:00
parent 490e22fdd0
commit 1e005ad1fd
3 changed files with 33 additions and 11 deletions

View File

@@ -235,6 +235,10 @@ wxPGGlobalVarsClass::~wxPGGlobalVarsClass()
delete ((wxPGEditor*)vt_it->second);
}
// Make sure the global pointers have been reset
wxASSERT(wxPG_EDITOR(TextCtrl) == NULL);
wxASSERT(wxPG_EDITOR(ChoiceAndButton) == NULL);
delete wxPGProperty::sm_wxPG_LABEL;
}