diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 7bbcc747ce6..ec6b32bf9a0 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -892,7 +892,7 @@ GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics) ReleaseDC(graphics->hwnd, graphics->hdc); GdipDeleteMatrix(graphics->worldtrans); - HeapFree(GetProcessHeap(), 0, graphics); + GdipFree(graphics); return Ok; }