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:
parent
6b237c5ba1
commit
8a3f17a18e
2
main.c
2
main.c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user