]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/event.cpp
VTK wrapper of vtkRenderWindow for wxPython. Tested on MSW so far.
[wxWidgets.git] / src / common / event.cpp
index 13a9a70e52161bc12f5a9f8375d1d81c669ff2dd..b41f00363abb460ae80b552b1c897180badd995b 100644 (file)
@@ -609,15 +609,7 @@ void wxEvtHandler::AddPendingEvent(wxEvent& event)
 
     wxLEAVE_CRIT_SECT(wxPendingEventsLocker);
 
 
     wxLEAVE_CRIT_SECT(wxPendingEventsLocker);
 
-    // TODO: Wake up idle handler for the other platforms.
-#ifdef __WXGTK__
     wxWakeUpIdle();
     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()
 }
 
 void wxEvtHandler::ProcessPendingEvents()
@@ -631,6 +623,7 @@ void wxEvtHandler::ProcessPendingEvents()
     {
         event = (wxEvent *)node->Data();
         ProcessEvent(*event);
     {
         event = (wxEvent *)node->Data();
         ProcessEvent(*event);
+        delete event;
         delete node;
         node = m_pendingEvents->First();
     }
         delete node;
         node = m_pendingEvents->First();
     }