Fix mismatched new/free in generic Region code.

Closes #11287.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-10-08 22:38:18 +00:00
parent 2205ca7463
commit 869b1b26ff

View File

@ -617,7 +617,7 @@ Region REGION::XCreateRegion(void)
if (!temp->rects)
{
free((char *) temp);
delete temp;
return (Region) NULL;
}
temp->numRects = 0;