Delete pending objects in wxApp::ProcessPendingEvents() and not ProcessIdle().
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 01:22:56 +0000 (01:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 01:22:56 +0000 (01:22 +0000)
commite819ca3aa5a6da0944180d0da45102457bffcff5
tree3cfa88272f8825b9ea662daf71a9b36e2a736b21
parent86c6fc77e16b4d9e21734f0af071f62ebd4237c8
Delete pending objects in wxApp::ProcessPendingEvents() and not ProcessIdle().

Move DeletePendingObjects() call from ProcessPendingEvents() to ProcessIdle()
to ensure that we delete the objects marked for destruction even if the
application is sitting in a tight OnIdle() loop, i.e. if the idle event
handler keeps requesting more events.

Also make sure that the event loop terminates if its OnExit() was called even
if the idle event handler continues to request more events.

Closes #12424.

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