X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3b9f782ef3949f583e8ac53795d36787f044fc3..b35549525f2a8dd584fdda158829e8406da0541e:/src/generic/dragimgg.cpp?ds=inline diff --git a/src/generic/dragimgg.cpp b/src/generic/dragimgg.cpp index 31dcc04f7a..e4b50c9f34 100644 --- a/src/generic/dragimgg.cpp +++ b/src/generic/dragimgg.cpp @@ -358,8 +358,7 @@ bool wxGenericDragImage::EndDrag() #else m_windowDC->DestroyClippingRegion(); #endif - delete m_windowDC; - m_windowDC = NULL; + wxDELETE(m_windowDC); } #ifndef wxHAS_NATIVE_OVERLAY