]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/ogl/basic2.cpp
wxUSE_STL fixes.
[wxWidgets.git] / contrib / src / ogl / basic2.cpp
index 658d93a725c9d6e06d81ace0bc869c2f4e04b3b9..0526495e72df22dbc4dfe1c2abd8843a97842376 100644 (file)
@@ -1819,9 +1819,9 @@ void wxShapeRegion::ClearText()
   while (node)
   {
     wxShapeTextLine *line = (wxShapeTextLine *)node->GetData();
-    wxNode *next = node->GetNext();
+    wxObjectList::compatibility_iterator next = node->GetNext();
     delete line;
-    delete node;
+    m_formattedText.Erase(node);
     node = next;
   }
 }