Commit 894d8b76 authored by Mathieu Malaterre's avatar Mathieu Malaterre
Browse files

BUG: Fix Bug #3690 - An error in function: vtkFieldData::AllocateArrays(int nSize)

parent 8357a064
......@@ -17,7 +17,7 @@
#include "vtkObjectFactory.h"
#include "vtkIdList.h"
vtkCxxRevisionMacro(vtkFieldData, "1.2.6.1");
vtkCxxRevisionMacro(vtkFieldData, "1.2.6.2");
vtkStandardNewMacro(vtkFieldData);
//----------------------------------------------------------------------------
......@@ -296,7 +296,10 @@ void vtkFieldData::AllocateArrays(int num)
{
for ( i=num; i < this->NumberOfArrays; i++)
{
this->Data[i]->UnRegister(this);
if( this->Data[i] )
{
this->Data[i]->UnRegister(this);
}
}
this->NumberOfArrays = num;
}
......
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