]> git.saurik.com Git - wxWidgets.git/commitdiff
oops, forgot to fix wxHtmlTag dtor
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 20 Jul 2001 12:32:50 +0000 (12:32 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 20 Jul 2001 12:32:50 +0000 (12:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmltag.cpp

index a4227750253085872ba116c5569025bb54649228..4e042c993f9df14aca155cfd476002e8ef2720fd 100644 (file)
@@ -300,8 +300,14 @@ wxHtmlTag::wxHtmlTag(wxHtmlTag *parent,
 
 wxHtmlTag::~wxHtmlTag()
 {
 
 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
 }
 
 bool wxHtmlTag::HasParam(const wxString& par) const