void DeleteHeaderContent(struct CHeader *head) { if(head->From!=NULL) delete[] head->From; if(head->FromNick!=NULL) delete[] head->FromNick; if(head->ReturnPath!=NULL) delete[] head->ReturnPath; if(head->ReturnPathNick!=NULL) delete[] head->ReturnPathNick; if(head->Subject!=NULL) delete[] head->Subject; if(head->Date!=NULL) delete[] head->Date; if(head->Body!=NULL) delete[] head->Body; if(head->To!=NULL) DeleteNames(head->To); if(head->Cc!=NULL) DeleteNames(head->Cc); if(head->Bcc!=NULL) DeleteNames(head->Bcc); }
void ResetWorld( INDEX iWorld ) { PWORLD world = GetSetMember( WORLD, &g.worlds, iWorld ); //SectorIDs = 0; DeleteSectors( iWorld );// deletes walls also... // should probably check that all walls are now now treferences... DeleteSet( (PGENERICSET*)&world->walls ); // should probably check that all lines are now now treferences... DeleteSet( (PGENERICSET*)&world->lines ); DeleteTextures( iWorld ); DeleteNames( iWorld ); //if( world->spacetree ) //{ // Log( "Spaces remained on the tree..." ); // DeleteSpaceTree( &world->spacetree ); //} }