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