X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e587bb9ec1de95af31e7ccf1e5e0818ff752b0f..010d821b3138ae39c43403da64eb0bcde9af82ae:/src/generic/regiong.cpp?ds=sidebyside diff --git a/src/generic/regiong.cpp b/src/generic/regiong.cpp index 67190870b9..7580c44432 100644 --- a/src/generic/regiong.cpp +++ b/src/generic/regiong.cpp @@ -1,10 +1,9 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/generic/region.cpp +// Name: src/generic/regiong.cpp // Purpose: generic wxRegion class // Author: David Elliott // Modified by: // Created: 2004/04/12 -// RCS-ID: $Id$ // Copyright: (c) 2004 David Elliott // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -617,7 +616,7 @@ Region REGION::XCreateRegion(void) if (!temp->rects) { - free((char *) temp); + delete temp; return (Region) NULL; } temp->numRects = 0; @@ -1645,7 +1644,7 @@ miSubtractO ( else if (r2->x1 <= x1) { /* - * Subtrahend preceeds minuend: nuke left edge of minuend. + * Subtrahend precedes minuend: nuke left edge of minuend. */ x1 = r2->x2; if (x1 >= r1->x2)