2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: lib/ddraw/ddraw.c
5 * PURPOSE: DirectDraw Library
6 * PROGRAMMER: Magnus Olsen (greatlrd)
15 Cleanup(LPDDRAWI_DIRECTDRAW_INT This
)
19 if (ddgbl
.lpDDCBtmp
!= NULL
)
21 DxHeapMemFree(ddgbl
.lpDDCBtmp
);
24 if (ddgbl
.lpdwFourCC
!= NULL
)
26 DxHeapMemFree(ddgbl
.lpdwFourCC
);
29 if (ddgbl
.lpModeInfo
!= NULL
)
31 DxHeapMemFree(ddgbl
.lpModeInfo
);
34 DdDeleteDirectDrawObject(&ddgbl
);
37 anything else to release?
40 /* release the linked interface */
41 //while (IsBadWritePtr( This->lpVtbl, sizeof( LPDDRAWI_DIRECTDRAW_INT )) )
43 // LPDDRAWI_DIRECTDRAW_INT newThis = This->lpVtbl;
44 // if (This->lpLcl != NULL)
46 // DeleteDC(This->lpLcl->hDC);
47 // DxHeapMemFree(This->lpLcl);
50 // DxHeapMemFree(This);
54 /* release unlinked interface */
55 if (This
->lpLcl
!= NULL
)
57 DxHeapMemFree(This
->lpLcl
);
61 // DxHeapMemFree(This);