Implement delayed destruction for wxPopupTransientWindow.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Oct 2011 22:02:02 +0000 (22:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Oct 2011 22:02:02 +0000 (22:02 +0000)
commitf9e19204bf8327f1e71f127e5542ee8306282280
tree5582b87d55f56b299c5141e0940a5190193dca99
parent4506b42ce9ad4d6ef9c4eb2650df84fd9eb4f031
Implement delayed destruction for wxPopupTransientWindow.

Windows of this class can be destroyed at any moment, even while some events
are still being processed, so delay the real destruction until we can be sure
that it's safe to delete the window.

This fixes problems (crashes due to dangling pointers) when the object is
deleted from the overridden OnDismiss(), for example.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/popupwin.h
src/common/popupcmn.cpp