X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2cd78b2a875c3b7abd8a9f1025e164124fae0088..ae901b234c4a0aa7c1777b3bd181dd7f8517ad21:/src/common/timerimpl.cpp?ds=sidebyside

diff --git a/src/common/timerimpl.cpp b/src/common/timerimpl.cpp
index 3f94268d21..c2ac8e8712 100644
--- a/src/common/timerimpl.cpp
+++ b/src/common/timerimpl.cpp
@@ -29,6 +29,7 @@
 
 #include "wx/private/timer.h"
 #include "wx/utils.h"               // for wxNewId()
+#include "wx/thread.h"
 
 wxTimerImpl::wxTimerImpl(wxTimer *timer)
 {
@@ -48,7 +49,7 @@ void wxTimerImpl::SetOwner(wxEvtHandler *owner, int timerid)
 void wxTimerImpl::SendEvent()
 {
     wxTimerEvent event(*m_timer);
-    (void)m_owner->ProcessEvent(event);
+    (void)m_owner->SafelyProcessEvent(event);
 }
 
 bool wxTimerImpl::Start(int milliseconds, bool oneShot)