X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..e19dbcf76b35cabe9487926b3a96d69c7f949d64:/src/msw/region.cpp diff --git a/src/msw/region.cpp b/src/msw/region.cpp index 73d983df89..fed4cda96b 100644 --- a/src/msw/region.cpp +++ b/src/msw/region.cpp @@ -384,12 +384,7 @@ void wxRegionIterator::Reset(const wxRegion& region) m_current = 0; m_region = region; - if (m_rects) - { - delete[] m_rects; - - m_rects = NULL; - } + wxDELETEA(m_rects); if (m_region.Empty()) m_numRects = 0;