]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/clipbrd.cpp
compilation fix: DefaultVisual() needs Display, not WXDisplay (and code cleanup in...
[wxWidgets.git] / src / motif / clipbrd.cpp
index 4af95a45ad40e73fbfca02cd8345d6c7477e67cb..2b795bae13e791f8513a71faa2b60ab174d6c2a6 100644 (file)
@@ -208,7 +208,9 @@ void wxClipboard::Clear()
 
     for( wxDataIdToDataObjectList::compatibility_iterator node2 = m_idToObject.GetFirst();
          node2; node2 = node2->GetNext() )
-        delete node->GetData();
+    {
+        delete node2->GetData();
+    }
     m_idToObject.Clear();
 }