ULONG cleanup(ULONG *arg) { rsiResult err; WriteLog(rc, "Cleanup"); err = rsiCleanup(CTXT); if(err) return err; #ifdef QUANT if(scrptr) delete [ ] scrptr; if(colormap) delete [ ] colormap; if (main_scr) CloseScreen(main_scr); #endif DestroyLists(); // free surface and actor lists DestroyCSGStack(); surf = NULL; actor = NULL; insideCSG = 0; return rsiERR_NONE; }
/***************************************************************************** * CKsFilter::~CKsFilter() ***************************************************************************** *//*! * @brief * Destructor. */ CKsFilter:: ~CKsFilter ( void ) { DestroyLists(); SafeCloseHandle(m_Handle); }
int f_cleanup(ULONG *arg) { rsiResult err; Log("Cleanup"); err = rsiCleanup(); if (err) return err; DestroyLists(); // free surface and actor lists surf = NULL; actor = NULL; return rsiERR_NONE; }
int main(void) { FILE *Calls, *Results, *DelorChCall, *Searchcalls, *Searchresults; InitializeLists(); PopulateLists(Calls); ShowList(Results, Received, 1); ShowList(Results, Called, 1); ShowList(Results, UnAnswered, 1); ShowList(Results, Received, -1); ShowList(Results, Called, -1); ShowList(Results, UnAnswered, -1); DeleteOrChangeCalls(DelorChCall); ShowList(Results, Received, 1); ShowList(Results, Called, 1); ShowList(Results, UnAnswered, 1); ShowList(Results, Received, -1); ShowList(Results, Called, -1); ShowList(Results, UnAnswered, -1); SearchCallList(Searchcalls,Searchresults); DestroyLists(); system("PAUSE"); return 0; }