gdiplus: Mark the Graphics object as busy before freeing it.

This commit is contained in:
Vincent Povirk 2014-01-03 14:00:10 -06:00 committed by Alexandre Julliard
parent 205003f9c0
commit 51b873b3ca
1 changed files with 6 additions and 0 deletions

View File

@ -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;