Changeset 112

Show
Ignore:
Timestamp:
08/09/10 16:54:17 (18 months ago)
Author:
Carsten
Message:

CaWE: Minor changes found in the course of implementing the first set of changes for the main objective (ticket #34).

Location:
cafu/branches/cafu_to_wx/CaWE
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • cafu/branches/cafu_to_wx/CaWE/AppCaWE.cpp

    r109 r112  
    220220    m_FileConfig=NULL; 
    221221 
    222     // TODO: delete cf::FileSys::FileMan;   // Shoud have   cf::FileSys::FileMan=new cf::FileSys::FileManImplT;   in OnInit(). 
    223     cf::FileSys::FileMan=NULL; 
    224  
    225222    ConsoleInterpreter=NULL;     // This is very important, to make sure that no ConFuncT or ConVarT dtor accesses the ConsoleInterpreter that might already have been destroyed then. 
    226223 
  • cafu/branches/cafu_to_wx/CaWE/ParentFrame.cpp

    r97 r112  
    194194 
    195195    // Release the Cafu Material System. 
    196     MatSys::TextureMapManager->FreeTextureMap(m_WhiteTexture); 
    197     MatSys::TextureMapManager=NULL; 
     196    if (MatSys::TextureMapManager!=NULL) 
     197    { 
     198        MatSys::TextureMapManager->FreeTextureMap(m_WhiteTexture); 
     199        MatSys::TextureMapManager=NULL; 
     200    } 
    198201 
    199202    if (MatSys::Renderer!=NULL)