X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c59aa14a6c1f23ddcd34822443483332a5ee81c3..dd5167e0bf2333e41622188955ae7e5ed3b4378e:/src/os2/window.cpp diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 33862da5f0..fdf6d3a87b 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -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 //