X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d1b9112dcddb9660c92b2734de003623498cf98..04354c1deb9e900f89d299a88317569d55e196bf:/include/wx/object.h diff --git a/include/wx/object.h b/include/wx/object.h index dc7a6a729e..7c161ab113 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -74,6 +74,27 @@ public: , m_next(sm_first) { sm_first = this; } + ~wxClassInfo() + { + if (sm_first == this) + { + sm_first = m_next; + } + else + { + wxClassInfo * info = sm_first; + while (info) + { + if (info->m_next == this) + { + info->m_next = m_next; + break; + } + info = info->m_next; + } + } + } + wxObject *CreateObject() { return m_objectConstructor ? (*m_objectConstructor)() : 0; } const wxChar *GetClassName() const { return m_className; }