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
This commit is contained in:
David Elliott
2004-04-13 20:46:15 +00:00
parent ff884567ca
commit 8f6a082bff

View 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;