Use HeapFree() instead of free(), dumb mistake
This commit is contained in:
parent
6b237c5ba1
commit
8a3f17a18e
2 changed files with 2 additions and 2 deletions
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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue