]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/window.cpp
New build slave for wxQt
[wxWidgets.git] / src / os2 / window.cpp
index 33862da5f0a070ede9d5e5fa6383ae940a0240fd..fdf6d3a87b37ad49090b6f8d11559e2e868fddb0 100644 (file)
@@ -3038,11 +3038,7 @@ bool wxWindowOS2::HandleDestroy()
     // Delete our drop target if we've got one
     //
 #if wxUSE_DRAG_AND_DROP
-    if (m_dropTarget != NULL)
-    {
-        delete m_dropTarget;
-        m_dropTarget = NULL;
-    }
+    wxDELETE(m_dropTarget);
 #endif // wxUSE_DRAG_AND_DROP
 
     //