]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/kernel/marImageData.cpp
creaButtonContainer: Documentation updates :) :). If you turns on the documentation...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / kernel / marImageData.cpp
index ea1927a39481e485e95e5bd1be1d9dbcda4a63ea..47f1481e222c24cc722c1e9fff019b53653399f3 100644 (file)
@@ -26,7 +26,7 @@ marImageData::~marImageData()
        int i,size=_imagedataLST.size();
        for (i=0;i<size;i++)
        {
-               _imagedataLST[i]->Delete();
+       //      _imagedataLST[i]->Delete();
        }
        _imagedataLST.clear();
 }
@@ -91,7 +91,11 @@ void marImageData::removeImageData(int index)
 {
        if(index < _imagedataLST.size()){
 
-               //vtkImageData* img = _imagedataLST[index];
+               /*vtkImageData* img = _imagedataLST[index];
+               if(img->GetReferenceCount()>1){
+                       img->SetReferenceCount(img->GetReferenceCount()-1);
+                       //img->Delete();
+               }*/
                for(int i = index; i < _imagedataLST.size()-1; i++){                    
                        _imagedataLST[i] = _imagedataLST[i+1];
                }