Applied patch [ 583877 ] Clone events correction
Applied patch [ 583937 ] Fix in wxClassInfo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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; }
|
||||
|
Reference in New Issue
Block a user