From: David Elliott Date: Tue, 13 Apr 2004 20:46:15 +0000 (+0000) Subject: new wxRegionRefData has size=1 so rects=malloc(sizeof(BOX)) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8f6a082bffb153736279c77dbd5e6d9ea19e1620 new wxRegionRefData has size=1 so rects=malloc(sizeof(BOX)) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/regiong.cpp b/src/generic/regiong.cpp index 82d5e85d0d..ca1ee59ad5 100644 --- a/src/generic/regiong.cpp +++ b/src/generic/regiong.cpp @@ -166,7 +166,7 @@ public: /* XCreateRegion */ { size = 1; numRects = 0; - rects = NULL; + rects = ( BOX * )malloc( (unsigned) sizeof( BOX )); extents.x1 = 0; extents.x2 = 0; extents.y1 = 0;