1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

delete region on release

This commit is contained in:
FunkyFr3sh 2022-09-27 14:05:31 +02:00
parent 24f6a020d5
commit 2ddc0b5ceb

View File

@ -28,6 +28,9 @@ ULONG __stdcall IDirectDrawClipper__Release(IDirectDrawClipperImpl* This)
{
TRACE(" Released (%p)\n", This);
if (This->region)
DeleteObject(This->region);
HeapFree(GetProcessHeap(), 0, This);
}