]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/clipbrd.cpp
VC6 compilation fix for native wxProgressDialog implementation.
[wxWidgets.git] / src / gtk / clipbrd.cpp
index 56fa9e1eb890afa1d0378d561fc0da4b5c10c8ad..7fe76b4e66b4b50980c4aeb45668ac6b4b0ec4ea 100644 (file)
@@ -485,11 +485,7 @@ GdkAtom wxClipboard::GTKGetClipboardAtom() const
 void wxClipboard::GTKClearData(Kind kind)
 {
     wxDataObject *&data = Data(kind);
-    if ( data )
-    {
-        delete data;
-        data = NULL;
-    }
+    wxDELETE(data);
 }
 
 bool wxClipboard::SetSelectionOwner(bool set)