X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..d9106ec5b679d5c9a5eb61b9633e5f3b1437b6a8:/src/gtk1/clipbrd.cpp diff --git a/src/gtk1/clipbrd.cpp b/src/gtk1/clipbrd.cpp index 6ff7ed1192..1c3cc69c94 100644 --- a/src/gtk1/clipbrd.cpp +++ b/src/gtk1/clipbrd.cpp @@ -2,7 +2,6 @@ // Name: src/gtk1/clipbrd.cpp // Purpose: // Author: Robert Roebling -// Id: $Id$ // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -216,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); } } @@ -383,11 +381,7 @@ void wxClipboard::Clear() while (m_waiting) gtk_main_iteration(); } - if (m_data) - { - delete m_data; - m_data = NULL; - } + wxDELETE(m_data); #if wxUSE_THREADS /* re-enable GUI threads */