Commit 63143fac authored by Julien Malik's avatar Julien Malik
Browse files

BUG: missing initialization in ctor causing segfault on Windows when DestroyDataSource is called

parent a1ab4842
......@@ -26,6 +26,7 @@ namespace otb
template<class TVectorData, class TInputImage, class TOutputImage>
RasterizeVectorDataFilter<TVectorData, TInputImage, TOutputImage>
::RasterizeVectorDataFilter()
: m_OGRDataSourcePointer(0)
{
this->SetNumberOfRequiredInputs(1);
}
......
......@@ -28,7 +28,9 @@ namespace otb
{
template<class TVectorData, class TOutputImage>
VectorDataToLabelImageFilter<TVectorData, TOutputImage>
::VectorDataToLabelImageFilter() : m_BurnAttribute("FID")
::VectorDataToLabelImageFilter()
: m_OGRDataSourcePointer(0),
m_BurnAttribute("FID")
{
this->SetNumberOfRequiredInputs(1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment