void FiniObj( void ) { //======================= // Release memory allocated for object code. if( ObjCode != NULL ) { FMemFree( ObjCode ); ObjCode = NULL; } if( PageFile != NULL ) { SDClose( PageFile ); PageFile = NULL; SDScratch( PageFileBuff ); } }
void CLIClear( void ) { /****************/ int x = 0; for( x = 0; x < DW_DEBUG_MAX; x++ ) { if ( ( Sections[x].sec_type == FILE_SECTION ) && Sections[x].u1.fp ) { SDClose( Sections[x].u1.fp ); if ( Sections[x].u2.filename ) { SDScratch( Sections[x].u2.filename ); FMemFree( Sections[x].u2.filename ); } } else if ((Sections[x].sec_type == MEM_SECTION) && Sections[x].u2.data){ FMemFree( Sections[x].u2.data ); } memset( &(Sections[x] ), 0, sizeof( section_data ) ); } }