]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/clipbrd.cpp
Get the page title from the IHtmlDocument rather than the bowser as it actually retur...
[wxWidgets.git] / src / x11 / clipbrd.cpp
index 13af47b6e84ad8f2b421cfa3f651000be1ea9078..0e5f06f2ac55411828ee660972ae72d4b35a07e0 100644 (file)
@@ -215,8 +215,7 @@ selection_clear_clip( GtkWidget *WXUNUSED(widget), GdkEventSelection *event )
         {
             wxLogTrace(TRACE_CLIPBOARD, wxT("wxClipboard will get cleared" ));
 
-            delete wxTheClipboard->m_data;
-            wxTheClipboard->m_data = NULL;
+            wxDELETE(wxTheClipboard->m_data);
         }
     }
 
@@ -348,11 +347,7 @@ void wxClipboard::Clear()
         }
 #endif
 
-        if (m_data)
-        {
-            delete m_data;
-            m_data = NULL;
-        }
+        wxDELETE(m_data);
 
 #if wxUSE_THREADS
         /* re-enable GUI threads */