X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cafcf62a834ae712e75db7179f530afb791579ce..fef5c55604e20e2a90843a2278b1f5c8c817dcee:/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; }