Changeset 127

Show
Ignore:
Timestamp:
11/26/07 11:28:50 (4 years ago)
Author:
uncle_fungus
Message:

Fixed segfault on exit. Fixes #4

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mactest/src/main.cpp

    r51 r127  
    203203        PreferencesManager::DestroyInstance();        // MUST be destroyed last, so that other managers can save their preferences when they are destroyed 
    204204        MessagesManager::DestroyInstance(); 
    205  
    206         delete mInstanceChecker; 
     205#ifndef __WXMAC__ 
     206        if (mInstanceChecker) 
     207                delete mInstanceChecker; 
     208#endif 
    207209 
    208210        return 0;