X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cafcf62a834ae712e75db7179f530afb791579ce..5d8fbe213ca853dba80fb5412fa13bda16f283b5:/src/common/toplvcmn.cpp diff --git a/src/common/toplvcmn.cpp b/src/common/toplvcmn.cpp index 7aba62adf9..71bc0468d3 100644 --- a/src/common/toplvcmn.cpp +++ b/src/common/toplvcmn.cpp @@ -83,16 +83,6 @@ bool wxTopLevelWindowBase::Destroy() // but hide it immediately Hide(); - // also remove it from the list of parents children so that the loop in - // wxWindowBase::DestroyChildren() eventually terminates - if ( m_parent ) - { - m_parent->RemoveChild(this); - - // don't do it again in our dtor - m_parent = NULL; - } - return TRUE; }