X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1457f12c3117131270a593bf0595ca74b5e523d0..c33c11fa1d2a0c4999e04386e04ac96cd350e853:/src/gtk/clipbrd.cpp?ds=inline diff --git a/src/gtk/clipbrd.cpp b/src/gtk/clipbrd.cpp index 1bda9b97d2..903cd48b71 100644 --- a/src/gtk/clipbrd.cpp +++ b/src/gtk/clipbrd.cpp @@ -395,11 +395,8 @@ void wxClipboard::Clear() while (m_waiting) gtk_main_iteration(); } - if (m_data) - { - delete m_data; - m_data = (wxDataObject*) NULL; - } + delete m_data; + m_data = NULL; #if wxUSE_THREADS /* re-enable GUI threads */