X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e587bb9ec1de95af31e7ccf1e5e0818ff752b0f..abd474ea63667f727940a009cc3e0b23ba9f418f:/src/generic/regiong.cpp diff --git a/src/generic/regiong.cpp b/src/generic/regiong.cpp index 67190870b9..bc3a24f8e2 100644 --- a/src/generic/regiong.cpp +++ b/src/generic/regiong.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/generic/region.cpp +// Name: src/generic/regiong.cpp // Purpose: generic wxRegion class // Author: David Elliott // Modified by: @@ -617,7 +617,7 @@ Region REGION::XCreateRegion(void) if (!temp->rects) { - free((char *) temp); + delete temp; return (Region) NULL; } temp->numRects = 0;