X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16519fd473f79954ba503dfa74a5cc4544391846..58ce18f2fdadecffb21e27555115af708325cf18:/src/osx/core/hidjoystick.cpp diff --git a/src/osx/core/hidjoystick.cpp b/src/osx/core/hidjoystick.cpp index 5fb651f34a..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); } } @@ -901,4 +900,4 @@ void* wxJoystickThread::Entry() } } -#endif // wxUSE_JOYSTICK +#endif // wxUSE_JOYSTICK