X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c3c38444859b01812a357fc85b98b15582349ce..327940530ced978fa9cdef134a3a52ec8c1ee476:/src/generic/regiong.cpp 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;