X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0b1ca1177d0affb978c2fa7ef227fd74ee83bece..a46cbd24b4e40f981c172a0efef78e925a6fb8bd:/src/osx/core/hidjoystick.cpp diff --git a/src/osx/core/hidjoystick.cpp b/src/osx/core/hidjoystick.cpp index 7f68765341..3bd17b1f33 100644 --- a/src/osx/core/hidjoystick.cpp +++ b/src/osx/core/hidjoystick.cpp @@ -157,8 +157,7 @@ wxJoystick::wxJoystick(int joystick) } else { - delete m_hid; - m_hid = NULL; + wxDELETE(m_hid); } } @@ -894,11 +893,11 @@ void* wxJoystickThread::Entry() wxevent.SetEventObject(pThis->m_catchwin); if (pThis->m_catchwin) - pThis->m_catchwin->AddPendingEvent(wxevent); + pThis->m_catchwin->GetEventHandler()->AddPendingEvent(wxevent); ret = (*m_hid->GetQueue())->getNextEvent(m_hid->GetQueue(), &hidevent, bogustime, 0); } } -#endif // wxUSE_JOYSTICK +#endif // wxUSE_JOYSTICK