X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bf9e3e736771b247eb38ada221266733b6a601c7..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/common/event.cpp diff --git a/src/common/event.cpp b/src/common/event.cpp index 13a9a70e52..b41f00363a 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -609,15 +609,7 @@ void wxEvtHandler::AddPendingEvent(wxEvent& event) wxLEAVE_CRIT_SECT(wxPendingEventsLocker); - // TODO: Wake up idle handler for the other platforms. -#ifdef __WXGTK__ wxWakeUpIdle(); -#elif wxUSE_GUI // this works for wxMSW, but may be for others too? - // might also send a dummy message to the top level window, this would - // probably be cleaner? - wxIdleEvent eventIdle; - wxTheApp->OnIdle(eventIdle); -#endif // platform } void wxEvtHandler::ProcessPendingEvents() @@ -631,6 +623,7 @@ void wxEvtHandler::ProcessPendingEvents() { event = (wxEvent *)node->Data(); ProcessEvent(*event); + delete event; delete node; node = m_pendingEvents->First(); }