Changeset 11cb98
- Timestamp:
- May 29, 2010, 1:11:22 PM (15 years ago)
- Children:
- 25a549
- Parents:
- aa36cc
- Location:
- molecuilder/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/UIElements/CommandLineUI/CommandLineWindow.cpp
raa36cc r11cb98 73 73 CommandLineWindow::~CommandLineWindow() 74 74 { 75 // go through all possible actions76 for(std::map<const std::string,Action*>::iterator ActionRunner = ActionRegistry::getInstance().getBeginIter(); ActionRegistry::getInstance().getBeginIter() != ActionRegistry::getInstance().getEndIter(); ActionRunner = ActionRegistry::getInstance().getBeginIter()) {77 ActionRegistry::getInstance().unregisterAction(ActionRunner->second);78 delete(ActionRunner->second);79 }75 // // go through all possible actions 76 // for(std::map<const std::string,Action*>::iterator ActionRunner = ActionRegistry::getInstance().getBeginIter(); ActionRegistry::getInstance().getBeginIter() != ActionRegistry::getInstance().getEndIter(); ActionRunner = ActionRegistry::getInstance().getBeginIter()) { 77 // ActionRegistry::getInstance().unregisterAction(ActionRunner->second); 78 // delete(ActionRunner->second); 79 // } 80 80 81 81 delete statusIndicator; -
molecuilder/src/builder.cpp
raa36cc r11cb98 53 53 54 54 #include <cstring> 55 #include <cstdlib> 55 56 56 57 #include "analysis_bonds.hpp" … … 2517 2518 ActionHistory::init(); 2518 2519 2520 // from this moment on, we need to be sure to deeinitialize in the correct order 2521 // this is handled by the cleanup function 2522 atexit(cleanUp); 2523 2519 2524 // Parse command line options and if present create respective UI 2520 2525 { -
molecuilder/src/helpers.cpp
raa36cc r11cb98 209 209 */ 210 210 void performCriticalExit() { 211 map<void*, size_t> pointers = MemoryUsageObserver::getInstance()->getPointersToAllocatedMemory();212 for (map<void*, size_t>::iterator runner = pointers.begin(); runner != pointers.end(); runner++) {213 Free(((void**) &runner->first));214 }211 // map<void*, size_t> pointers = MemoryUsageObserver::getInstance()->getPointersToAllocatedMemory(); 212 // for (map<void*, size_t>::iterator runner = pointers.begin(); runner != pointers.end(); runner++) { 213 // Free(((void**) &runner->first)); 214 // } 215 215 216 216 exit(255);
Note:
See TracChangeset
for help on using the changeset viewer.