Index: vtkRungeKutta45.cxx
===================================================================
RCS file: /cvsroot/ParaView3/ParaView3/VTK/Common/vtkRungeKutta45.cxx,v
retrieving revision 1.14
diff -u -r1.14 vtkRungeKutta45.cxx
--- vtkRungeKutta45.cxx	13 Sep 2007 13:16:27 -0000	1.14
+++ vtkRungeKutta45.cxx	21 Oct 2009 15:33:07 -0000
@@ -55,7 +55,7 @@
 {
   for(int i=0; i<6; i++)
     {
-    this->NextDerivs[i] = 0;
+    this->NextDerivs[i] = new double [1];
     }
   this->Adaptive = 1;
 }
@@ -81,6 +81,7 @@
   // Allocate memory for temporary derivatives array
   for(int i=0; i<6; i++)
     {
+    delete [] this->NextDerivs[i];
     this->NextDerivs[i] = 
       new double[this->FunctionSet->GetNumberOfFunctions()];
     }
