Add assert checking that window has no event handlers when destroyed.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Jan 2010 12:51:48 +0000 (12:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Jan 2010 12:51:48 +0000 (12:51 +0000)
commit4b621e4ce48e0776fedaf08c927d161257b25222
tree9d237cf74f7e7ee2508fa980a17204b69f7f499c
parent4cb0e8d05cadea6be3a7bd93f1fea9a9e0df95f0
Add assert checking that window has no event handlers when destroyed.

Forgetting to pop custom event handlers pushed onto the window before it is
destroyed will result in a crash later on, so try to detect this immediately
with an assert.

We might want to forcefully pop them off too, this could result in memory
leaks but would be still better than crashing.

Closes #11533.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/wincmn.cpp