X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e587bb9ec1de95af31e7ccf1e5e0818ff752b0f..8e6c2840b4149e356350cac7449a96323b4466ec:/src/generic/regiong.cpp diff --git a/src/generic/regiong.cpp b/src/generic/regiong.cpp index 67190870b9..24d24e2bba 100644 --- a/src/generic/regiong.cpp +++ b/src/generic/regiong.cpp @@ -617,7 +617,7 @@ Region REGION::XCreateRegion(void) if (!temp->rects) { - free((char *) temp); + delete temp; return (Region) NULL; } temp->numRects = 0;