Ignore:
Timestamp:
May 29, 2010, 1:11:22 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
25a549
Parents:
aa36cc
Message:

Fixes to prevent seg'faults.

  • CommandLineWindow::~CommandLineWindow() - does not unregister and delete all actions as this is done by the ActionRegistry anyway
  • main() - use atexit(cleanUp) (by Till) to ensure correct order of the cleanup
  • performCriticalExit() - don't free still allocated memory as this is handled by any good operation system nowadays
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    raa36cc r11cb98  
    5353
    5454#include <cstring>
     55#include <cstdlib>
    5556
    5657#include "analysis_bonds.hpp"
     
    25172518    ActionHistory::init();
    25182519
     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
    25192524    // Parse command line options and if present create respective UI
    25202525    {
Note: See TracChangeset for help on using the changeset viewer.