X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..2c032a5d7197121c10d983892a499a7facb22dfb:/src/x11/clipbrd.cpp diff --git a/src/x11/clipbrd.cpp b/src/x11/clipbrd.cpp index 13af47b6e8..0e5f06f2ac 100644 --- a/src/x11/clipbrd.cpp +++ b/src/x11/clipbrd.cpp @@ -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 */