]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/core/hidjoystick.cpp
fixing warning and compile error against 10.4
[wxWidgets.git] / src / osx / core / hidjoystick.cpp
index 5fb651f34a9c77d5ca829b72304c5e4cd6ac5986..3bd17b1f3397a67f322463d414a55bfc334313d5 100644 (file)
@@ -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