]> git.saurik.com Git - wxWidgets.git/commit
Fix crashes after using "wildcard" wxEvtHandler::Disconnect().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Nov 2012 12:22:32 +0000 (12:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Nov 2012 12:22:32 +0000 (12:22 +0000)
commit75b2220ebaf4b922be747a16c8cc7d7dfdac0fad
tree0f2bf8f36acc9c5c3fdda6cc213c0e9cc782cbe9
parent4677003143f4d12c979a92a1ac3970afd166973d
Fix crashes after using "wildcard" wxEvtHandler::Disconnect().

When not specifying the function to disconnect, the associated event sink was
destroyed too early resulting in crashes later. Fix this and add unit tests
verifying that things work as expected and at least don't crash.

Closes #14563.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/event.cpp
tests/events/evthandler.cpp