gdiplus: Mark the Graphics object as busy before freeing it.
This commit is contained in:
parent
205003f9c0
commit
51b873b3ca
|
@ -2409,6 +2409,12 @@ GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics)
|
|||
}
|
||||
|
||||
GdipDeleteRegion(graphics->clip);
|
||||
|
||||
/* Native returns ObjectBusy on the second free, instead of crashing as we'd
|
||||
* do otherwise, but we can't have that in the test suite because it means
|
||||
* accessing freed memory. */
|
||||
graphics->busy = TRUE;
|
||||
|
||||
GdipFree(graphics);
|
||||
|
||||
return Ok;
|
||||
|
|
Loading…
Reference in New Issue