]> git.saurik.com Git - wxWidgets.git/commitdiff
new wxRegionRefData has size=1 so rects=malloc(sizeof(BOX))
authorDavid Elliott <dfe@tgwbd.org>
Tue, 13 Apr 2004 20:46:15 +0000 (20:46 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Tue, 13 Apr 2004 20:46:15 +0000 (20:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/regiong.cpp

index 82d5e85d0d71d471a98bf76d9f375e17325d7a1d..ca1ee59ad5a5729e5abff8e635d9309349be8de4 100644 (file)
@@ -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;