X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe71f65c0fec58e34fbc7c4ece402313bf48e220..5bfe9bbc658328942c516f30a454c8a955e1391e:/src/common/event.cpp?ds=sidebyside diff --git a/src/common/event.cpp b/src/common/event.cpp index 25e3750a39..c6f1a9023b 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -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(); }