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:
@@ -617,7 +617,7 @@ Region REGION::XCreateRegion(void)
|
|||||||
|
|
||||||
if (!temp->rects)
|
if (!temp->rects)
|
||||||
{
|
{
|
||||||
free((char *) temp);
|
delete temp;
|
||||||
return (Region) NULL;
|
return (Region) NULL;
|
||||||
}
|
}
|
||||||
temp->numRects = 0;
|
temp->numRects = 0;
|
||||||
|
Reference in New Issue
Block a user