Salome HOME
Porting 4.2. Tests OK \!
[modules/paravis.git] / src / Plugins / MEDReader / IO / vtkExtractCellType.cxx
index ff5fde36db53cea8c14a354f5fa6d13083418d0d..de68490db686357433b845fcb56872c283f7bb68 100644 (file)
@@ -3,7 +3,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -264,6 +264,8 @@ vtkExtractCellType::vtkExtractCellType():SIL(NULL),Internal(new vtkExtractCellTy
 
 vtkExtractCellType::~vtkExtractCellType()
 {
+  if(this->SIL)
+    this->SIL->Delete();
   delete this->Internal;
 }