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:
Magnus Olsen 2005-11-01 18:53:37 +00:00
parent 4fdcdd13c6
commit 0749054fcf
2 changed files with 3 additions and 0 deletions

View file

@ -315,6 +315,7 @@ VOID Hal_DirectDraw_Release (LPDIRECTDRAW7 iface)
DdDeleteDirectDrawObject (&This->DirectDrawGlobal); DdDeleteDirectDrawObject (&This->DirectDrawGlobal);
/*
if(This->DirectDrawGlobal.lpDDKernelCaps) if(This->DirectDrawGlobal.lpDDKernelCaps)
HeapFree(GetProcessHeap(), 0, This->DirectDrawGlobal.lpDDKernelCaps); HeapFree(GetProcessHeap(), 0, This->DirectDrawGlobal.lpDDKernelCaps);
@ -344,6 +345,7 @@ VOID Hal_DirectDraw_Release (LPDIRECTDRAW7 iface)
if(This->DirectDrawGlobal.lpD3DGlobalDriverData) if(This->DirectDrawGlobal.lpD3DGlobalDriverData)
HeapFree(GetProcessHeap(), 0, (PVOID)This->DirectDrawGlobal.lpD3DGlobalDriverData); HeapFree(GetProcessHeap(), 0, (PVOID)This->DirectDrawGlobal.lpD3DGlobalDriverData);
*/
} }

View file

@ -80,6 +80,7 @@ HRESULT Hal_DDrawSurface_Initialize (LPDIRECTDRAWSURFACE7 iface, LPDIRECTDRAW pD
This->Local.lpGbl = &This->Global; This->Local.lpGbl = &This->Global;
This->Local.lpSurfMore = &This->More; This->Local.lpSurfMore = &This->More;
/* FIXME do a memcopy */ /* FIXME do a memcopy */
This->Local.ddsCaps = *(DDSCAPS*)&This->ddsd.ddsCaps; This->Local.ddsCaps = *(DDSCAPS*)&This->ddsd.ddsCaps;