X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3b9f782ef3949f583e8ac53795d36787f044fc3..5eed855656b3996f4c0aa0a585a4820a2af6d628:/src/generic/dragimgg.cpp 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