Skip to content
Snippets Groups Projects
Commit 834e47ac authored by Julien Michel's avatar Julien Michel
Browse files

MRG

parents d618c76d f52cb317
No related branches found
No related tags found
No related merge requests found
......@@ -772,17 +772,13 @@ void GDALImageIO::Write(const void* buffer)
{
itkExceptionMacro(<< "Error while writing image (GDAL format) " << m_FileName.c_str()<<".");
}
m_poBands[nbComponents]->FlushCache();
}
delete [] value;
value = NULL;
m_poDataset->FlushCache();
if(m_poDataset != NULL)
{
GDALClose(m_poDataset);
m_poDataset = NULL;
}
}
/** TODO : Methode WriteImageInformation non implementee */
......
......@@ -73,7 +73,9 @@ ImageFileWriter<TInputImage>
itk::ImageIOFactory::WriteMode ) );
this->SetNumberOfStreamDivisions( static_cast<unsigned int>( CalculateNumberOfStreamDivisions() ) );
this->Superclass::Write();
//TODO: Force ImageIO desctructor. Should be fixed once GDALImageIO
//will be refactored.
this->SetImageIO(NULL);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment