]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/dragimgg.cpp
remove always-true test of unsigned >= 0
[wxWidgets.git] / src / generic / dragimgg.cpp
index 31dcc04f7a051620446b53eddea702dd796e2961..e4b50c9f341edc586160e6c8a00cbf0c81f9e57d 100644 (file)
@@ -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