]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/MeshReader.cxx
Merge ssh://git.creatis.insa-lyon.fr/cpPlugins
[cpPlugins.git] / lib / cpPlugins / Plugins / MeshReader.cxx
index e658d8611b0fa69d998a85fd2c83fb79dca11210..199325954b24e817bc063e99784bbec405cb5b7c 100644 (file)
@@ -7,7 +7,8 @@
 // -------------------------------------------------------------------------
 cpPlugins::Plugins::MeshReader::
 MeshReader( )
-  : Superclass( )
+  : Superclass( ),
+    m_Reader( NULL )
 {
   this->m_ClassName = "cpPlugins::MeshReader";
   this->m_ClassCategory = "MeshReader";
@@ -28,6 +29,8 @@ MeshReader( )
 cpPlugins::Plugins::MeshReader::
 ~MeshReader( )
 {
+  if( this->m_Reader != NULL )
+    this->m_Reader = NULL;
 }
 
 // -------------------------------------------------------------------------
@@ -76,7 +79,7 @@ _GD1( )
   pdr->Update( );
 
   cpPlugins::Interface::Mesh* out =
-    this->_Output< cpPlugins::Interface::Mesh >( 0 );
+    this->GetOutput< cpPlugins::Interface::Mesh >( 0 );
   if( out != NULL )
     out->SetVTKMesh( pdr->GetOutput( ) );
   else