mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
do not try free memmory at exit it seam like the DdDeleteDirectDrawObject doing it for us, and it does not crash any longer at exists
svn path=/trunk/; revision=18936
This commit is contained in:
parent
4fdcdd13c6
commit
0749054fcf
2 changed files with 3 additions and 0 deletions
|
@ -315,6 +315,7 @@ VOID Hal_DirectDraw_Release (LPDIRECTDRAW7 iface)
|
|||
|
||||
DdDeleteDirectDrawObject (&This->DirectDrawGlobal);
|
||||
|
||||
/*
|
||||
if(This->DirectDrawGlobal.lpDDKernelCaps)
|
||||
HeapFree(GetProcessHeap(), 0, This->DirectDrawGlobal.lpDDKernelCaps);
|
||||
|
||||
|
@ -344,6 +345,7 @@ VOID Hal_DirectDraw_Release (LPDIRECTDRAW7 iface)
|
|||
|
||||
if(This->DirectDrawGlobal.lpD3DGlobalDriverData)
|
||||
HeapFree(GetProcessHeap(), 0, (PVOID)This->DirectDrawGlobal.lpD3DGlobalDriverData);
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -80,6 +80,7 @@ HRESULT Hal_DDrawSurface_Initialize (LPDIRECTDRAWSURFACE7 iface, LPDIRECTDRAW pD
|
|||
This->Local.lpGbl = &This->Global;
|
||||
This->Local.lpSurfMore = &This->More;
|
||||
|
||||
|
||||
/* FIXME do a memcopy */
|
||||
This->Local.ddsCaps = *(DDSCAPS*)&This->ddsd.ddsCaps;
|
||||
|
||||
|
|
Loading…
Reference in a new issue