Destroy the stick when done

This commit is contained in:
Robin Dunn
2018-10-29 14:17:39 -07:00
parent fe6e79e005
commit a6946964f8

View File

@@ -953,6 +953,7 @@ class JoystickDemoPanel(wx.Panel):
def ShutdownDemo(self):
if self.stick:
self.stick.ReleaseCapture()
self.stick.Destroy()
self.stick = None
#----------------------------------------------------------------------------