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/VspTree.cpp

    r1692 r1696  
    345345 
    346346VspLeaf::VspLeaf():  
    347 mViewCell(NULL), mPvs(NULL), mSubdivisionCandidate(NULL) 
     347mViewCell(NULL), mSubdivisionCandidate(NULL) 
     348//, mPvs(NULL) 
    348349{ 
    349350} 
     
    352353VspLeaf::~VspLeaf() 
    353354{ 
    354         DEL_PTR(mPvs); 
    355  
    356355        VssRayContainer::const_iterator vit, vit_end = mVssRays.end(); 
    357356        for (vit = mVssRays.begin(); vit != vit_end; ++ vit) 
     
    380379 
    381380VspLeaf::VspLeaf(VspInterior *parent):  
    382 VspNode(parent), mViewCell(NULL), mPvs(NULL) 
     381VspNode(parent), mViewCell(NULL) 
     382//, mPvs(NULL) 
    383383{} 
    384384 
    385385 
    386386VspLeaf::VspLeaf(VspInterior *parent, ViewCellLeaf *viewCell):  
    387 VspNode(parent), mViewCell(viewCell), mPvs(NULL) 
     387VspNode(parent), mViewCell(viewCell) 
     388//, mPvs(NULL) 
    388389{ 
    389390} 
     
    963964        backData.mNode = backLeaf; 
    964965 
    965         // explicitely create front and back view cell 
     966        // create front and back view cell for the new leaves 
    966967        CreateViewCell(frontData, false); 
    967968        CreateViewCell(backData, false); 
     
    28462847        // set view cell values 
    28472848        viewCell->mLeaves.push_back(leaf); 
    2848  
    28492849        viewCell->SetVolume(mBoundingBox.GetVolume()); 
    2850     leaf->mProbability = mBoundingBox.GetVolume(); 
     2850 
     2851        leaf->mProbability = mBoundingBox.GetVolume(); 
    28512852} 
    28522853 
Note: See TracChangeset for help on using the changeset viewer.