Ignore:
Timestamp:
10/29/06 18:17:38 (18 years ago)
Author:
mattausch
Message:

removed memory leaks

File:
1 edited

Legend:

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

    r1695 r1696  
    244244        { 
    245245                CLEAR_CONTAINER(mViewCells); 
     246        } 
     247        else 
     248        { 
     249                DEL_PTR(mViewCellsTree); 
    246250        } 
    247251} 
     
    30413045                        {        
    30423046                                // prepare some rays for output 
    3043                                 VssRayContainer::const_iterator rit, rit_end = (*vit)->mVssRays.end(); 
    3044                                 for (rit = (*vit)->mVssRays.begin(); rit != rit_end; ++ rit) 
     3047                                VssRayContainer::const_iterator rit, rit_end = (*vit)->GetOrCreateRays()->end(); 
     3048                                for (rit = (*vit)->GetOrCreateRays()->begin(); rit != rit_end; ++ rit) 
    30453049                                { 
    30463050                                        collectRays.push_back(*rit); 
     
    49684972 
    49694973 
    4970         // should maybe be done here to allow merge working with area or volume 
    4971         // and to correct the rendering statistics 
    4972         if (0) FinalizeViewCells(false); 
    4973                  
    49744974        // compute tree by merging the nodes of the spatial hierarchy 
    49754975        ViewCell *root = ConstructSpatialMergeTree(mHierarchyManager->GetVspTree()->GetRoot()); 
    49764976        mViewCellsTree->SetRoot(root); 
    49774977 
    4978  
    49794978        ////////////////////////// 
    4980         //-- update pvs in the whole hierarchy 
     4979        //-- update pvs up to the root of the hierarchy 
     4980 
    49814981        ObjectPvs pvs; 
    49824982        UpdatePvsForEvaluation(root, pvs); 
     
    50105010        //-- some tasks still to do on the view cells: 
    50115011        //-- Compute meshes from view cell geometry, evaluate volume and / or area 
     5012 
    50125013        if (1) FinalizeViewCells(true); 
    50135014 
    50145015        // write out view cells (this moved to preprocessor) 
    5015         if (1 && mExportViewCells) 
     5016        if (mExportViewCells) 
    50165017        { 
    50175018                char filename[100]; 
Note: See TracChangeset for help on using the changeset viewer.