VizFrame::~VizFrame(void) { cleanupThreads(); // Clean up all the allocated icons delete bmpOpen; delete bmpConfig; delete bmpHelp; delete bmpFind; delete bmpHome; delete bmpStop; delete bmpFastForward; delete bmpPlay; delete bmpRewind; #ifdef _WIN32 delete bmpIda; bmpIda = NULL; #endif bmpOpen = NULL; bmpConfig = NULL; bmpHelp = NULL; bmpFind = NULL; bmpHome = NULL; bmpStop = NULL; bmpFastForward = NULL; bmpPlay = NULL; bmpRewind = NULL; if (animationTimer) { delete animationTimer; animationTimer = NULL; } }
void VizFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) { cleanupThreads(); // true is to force the frame to close Close(true); }
ThreadPoolWithSignals::~ThreadPoolWithSignals() { cleanupThreads(); }