]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmltag.cpp
compilation fixes
[wxWidgets.git] / src / html / htmltag.cpp
index a4227750253085872ba116c5569025bb54649228..4e042c993f9df14aca155cfd476002e8ef2720fd 100644 (file)
@@ -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