Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygencleanup.c
Go to the documentation of this file.
00001 /* $Id: main.c 21434 2006-04-01 19:12:56Z greatlrd $ 00002 * 00003 * COPYRIGHT: See COPYING in the top level directory 00004 * PROJECT: ReactOS kernel 00005 * FILE: lib/ddraw/ddraw.c 00006 * PURPOSE: DirectDraw Library 00007 * PROGRAMMER: Magnus Olsen (greatlrd) 00008 * 00009 */ 00010 00011 #include <windows.h> 00012 #include "rosdraw.h" 00013 #include "d3dhal.h" 00014 00015 VOID 00016 Cleanup(LPDDRAWI_DIRECTDRAW_INT This) 00017 { 00018 DX_WINDBG_trace(); 00019 00020 if (ddgbl.lpDDCBtmp != NULL) 00021 { 00022 DxHeapMemFree(ddgbl.lpDDCBtmp); 00023 } 00024 00025 if (ddgbl.lpdwFourCC != NULL) 00026 { 00027 DxHeapMemFree(ddgbl.lpdwFourCC); 00028 } 00029 00030 if (ddgbl.lpModeInfo != NULL) 00031 { 00032 DxHeapMemFree(ddgbl.lpModeInfo); 00033 } 00034 00035 DdDeleteDirectDrawObject(&ddgbl); 00036 00037 /* 00038 anything else to release? 00039 */ 00040 00041 /* release the linked interface */ 00042 //while (IsBadWritePtr( This->lpVtbl, sizeof( LPDDRAWI_DIRECTDRAW_INT )) ) 00043 //{ 00044 // LPDDRAWI_DIRECTDRAW_INT newThis = This->lpVtbl; 00045 // if (This->lpLcl != NULL) 00046 // { 00047 // DeleteDC(This->lpLcl->hDC); 00048 // DxHeapMemFree(This->lpLcl); 00049 // } 00050 00051 // DxHeapMemFree(This); 00052 // This = newThis; 00053 //} 00054 00055 /* release unlinked interface */ 00056 if (This->lpLcl != NULL) 00057 { 00058 DxHeapMemFree(This->lpLcl); 00059 } 00060 //if (This != NULL) 00061 //{ 00062 // DxHeapMemFree(This); 00063 //} 00064 00065 } 00066 Generated on Sun May 27 2012 04:21:22 for ReactOS by
1.7.6.1
|