]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/event.cpp
Added GTK/Linux joystick class (Guilhem Lavaux)
[wxWidgets.git] / src / common / event.cpp
index 25e3750a39221deb3f465bad3831c6add3572a4a..c6f1a9023b4efd9a21c03de3c370af148f1c055b 100644 (file)
@@ -269,6 +269,7 @@ wxEvtHandler::~wxEvtHandler(void)
     while (node)
     {
       wxEventTableEntry *entry = (wxEventTableEntry*)node->Data();
+      if (entry->m_callbackUserData) delete entry->m_callbackUserData;
       delete entry;
       node = node->Next();
     }