]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix mismatched new/free in generic Region code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Oct 2009 22:38:18 +0000 (22:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Oct 2009 22:38:18 +0000 (22:38 +0000)
Closes #11287.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/regiong.cpp

index 67190870b9e47034092c89515c9f34aee579dd26..24d24e2bba6d0585189189319c61ecae2c1d03b7 100644 (file)
@@ -617,7 +617,7 @@ Region REGION::XCreateRegion(void)
 
     if (!temp->rects)
     {
-        free((char *) temp);
+        delete temp;
         return (Region) NULL;
     }
     temp->numRects = 0;