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

Use HeapFree() instead of free(), dumb mistake

This commit is contained in:
Toni Spets 2010-11-18 16:47:25 +02:00
parent 6b237c5ba1
commit 8a3f17a18e
2 changed files with 2 additions and 2 deletions

2
main.c
View File

@ -410,7 +410,7 @@ ULONG __stdcall ddraw_Release(IDirectDrawImpl *This)
/* restore old wndproc, subsequent ddraw creation will otherwise fail */
SetWindowLong(This->hWnd, GWL_WNDPROC, (LONG)This->WndProc);
//free(This);
HeapFree(GetProcessHeap(), 0, This);
ddraw = NULL;
return 0;
}

View File

@ -58,7 +58,7 @@ ULONG __stdcall ddraw_surface_Release(IDirectDrawSurfaceImpl *This)
{
IDirectDrawPalette_Release(This->palette);
}
//free(This);
HeapFree(GetProcessHeap(), 0, This);
return 0;
}
return This->Ref;