do not try free memmory at exit it seam like the DdDeleteDirectDrawObject doing it...
authorMagnus Olsen <magnus@greatlord.com>
Tue, 1 Nov 2005 18:53:37 +0000 (18:53 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Tue, 1 Nov 2005 18:53:37 +0000 (18:53 +0000)
svn path=/trunk/; revision=18936

reactos/lib/ddraw/hal/ddraw_hal.c
reactos/lib/ddraw/hal/surface_hal.c

index 3d4775b..6997c15 100644 (file)
@@ -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);
+       */
 }
 
 
index e956bc2..f6a988f 100644 (file)
@@ -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;