]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/region.cpp
Use unsigned char for XBM bitmaps data.
[wxWidgets.git] / src / msw / region.cpp
index 73d983df890ae7a959bfeb94449fbe879a024976..fed4cda96b602a329a0911035ad94d90640d7a94 100644 (file)
@@ -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;