1 /* $Id: main.c 21434 2006-04-01 19:12:56Z greatlrd $
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: lib/ddraw/ddraw.c
6 * PURPOSE: DirectDraw Library
7 * PROGRAMMER: Magnus Olsen (greatlrd)
16 Cleanup(LPDDRAWI_DIRECTDRAW_INT This
)
20 if (ddgbl
.lpDDCBtmp
!= NULL
)
22 DxHeapMemFree(ddgbl
.lpDDCBtmp
);
25 if (ddgbl
.lpdwFourCC
!= NULL
)
27 DxHeapMemFree(ddgbl
.lpdwFourCC
);
30 if (ddgbl
.lpModeInfo
!= NULL
)
32 DxHeapMemFree(ddgbl
.lpModeInfo
);
35 DdDeleteDirectDrawObject(&ddgbl
);
38 anything else to release?
41 /* release the linked interface */
42 //while (IsBadWritePtr( This->lpVtbl, sizeof( LPDDRAWI_DIRECTDRAW_INT )) )
44 // LPDDRAWI_DIRECTDRAW_INT newThis = This->lpVtbl;
45 // if (This->lpLcl != NULL)
47 // DeleteDC(This->lpLcl->hDC);
48 // DxHeapMemFree(This->lpLcl);
51 // DxHeapMemFree(This);
55 /* release unlinked interface */
56 if (This
->lpLcl
!= NULL
)
58 DxHeapMemFree(This
->lpLcl
);
62 // DxHeapMemFree(This);