Ignore:
Timestamp:
06/07/06 10:59:55 (18 years ago)
Author:
mattausch
Message:

debug run: fixing memory holes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp

    r1001 r1002  
    115115mVspKdTree(NULL), 
    116116mVspBspTree(NULL), 
    117 mViewCellsManager(NULL) 
     117mViewCellsManager(NULL), 
     118mRenderSimulator(NULL) 
    118119{ 
    119120        environment->GetBoolValue("Preprocessor.useGlRenderer", mUseGlRenderer); 
     
    165166  DEL_PTR(mVspBspTree); 
    166167  cout << "done.\n"; 
     168 
     169   cout << "Deleting scene graph...\n"; 
     170  DEL_PTR(mSceneGraph); 
     171  cout << "done.\n"; 
     172 
     173  DEL_PTR(mRenderSimulator); 
     174  DEL_PTR(renderer); 
    167175} 
    168176 
     
    276284  if (mApplyVisibilityFilter || mApplyVisibilitySpatialFilter) { 
    277285        cout<<"Applying visibility filter ..."; 
    278         cout<<"filyter width = " << mVisibilityFilterWidth << endl; 
    279          
     286        cout<<"filter width = " << mVisibilityFilterWidth << endl; 
     287         
     288        if (!mViewCellsManager) 
     289                return false; 
     290 
    280291        mViewCellsManager->ApplyFilter(mKdTree, 
    281292                                                                   mApplyVisibilityFilter ? mVisibilityFilterWidth : -1.0f, 
     
    361372        { 
    362373                //-- parse type of view cell container 
    363                 char viewCellsStr[64]; 
    364                 environment->GetStringValue("ViewCells.type", viewCellsStr); 
    365                  
    366             mViewCellsManager = CreateViewCellsManager(viewCellsStr); 
     374                environment->GetStringValue("ViewCells.type", buf);              
     375            mViewCellsManager = CreateViewCellsManager(buf); 
    367376        } 
    368377 
Note: See TracChangeset for help on using the changeset viewer.