From: Václav Slavík Date: Fri, 20 Jul 2001 12:32:50 +0000 (+0000) Subject: oops, forgot to fix wxHtmlTag dtor X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0d58bb65789a8efec581d2beb2117669d1d1db9d?ds=sidebyside oops, forgot to fix wxHtmlTag dtor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/htmltag.cpp b/src/html/htmltag.cpp index a422775025..4e042c993f 100644 --- a/src/html/htmltag.cpp +++ b/src/html/htmltag.cpp @@ -300,8 +300,14 @@ wxHtmlTag::wxHtmlTag(wxHtmlTag *parent, wxHtmlTag::~wxHtmlTag() { - for (wxHtmlTag *t = m_FirstChild; t; t = t->GetNextSibling()) - delete t; + wxHtmlTag *t1, *t2; + t1 = m_FirstChild; + while (t1) + { + t2 = t1->GetNextSibling(); + delete t1; + t1 = t2; + } } bool wxHtmlTag::HasParam(const wxString& par) const