From: Paul Cornett Date: Thu, 7 Dec 2006 07:20:56 +0000 (+0000) Subject: remove redundant test X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f4c469765228086eb441c3bd82d64d21d256fdd1 remove redundant test git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 */