Commit 18861b93 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

try to fix leak

parent 65cb0e95
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "vtkPVWindow.h" #include "vtkPVWindow.h"
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkPVProcessModuleGUIHelper, "1.1"); vtkCxxRevisionMacro(vtkPVProcessModuleGUIHelper, "1.2");
vtkSetObjectImplementationMacro(vtkPVProcessModuleGUIHelper,PVApplication, vtkPVApplication); vtkSetObjectImplementationMacro(vtkPVProcessModuleGUIHelper,PVApplication, vtkPVApplication);
vtkSetObjectImplementationMacro(vtkPVProcessModuleGUIHelper,PVProcessModule, vtkPVProcessModule); vtkSetObjectImplementationMacro(vtkPVProcessModuleGUIHelper,PVProcessModule, vtkPVProcessModule);
vtkStandardNewMacro(vtkPVProcessModuleGUIHelper); vtkStandardNewMacro(vtkPVProcessModuleGUIHelper);
...@@ -16,6 +16,11 @@ vtkPVProcessModuleGUIHelper::vtkPVProcessModuleGUIHelper() ...@@ -16,6 +16,11 @@ vtkPVProcessModuleGUIHelper::vtkPVProcessModuleGUIHelper()
this->PVProcessModule = 0; this->PVProcessModule = 0;
} }
vtkPVProcessModuleGUIHelper::~vtkPVProcessModuleGUIHelper()
{
this->SetPVApplication(0);
}
void vtkPVProcessModuleGUIHelper::PrintSelf(ostream& os, vtkIndent indent) void vtkPVProcessModuleGUIHelper::PrintSelf(ostream& os, vtkIndent indent)
{ {
......
...@@ -45,7 +45,7 @@ int vtkPVProcessModule::GlobalLODFlag = 0; ...@@ -45,7 +45,7 @@ int vtkPVProcessModule::GlobalLODFlag = 0;
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
vtkStandardNewMacro(vtkPVProcessModule); vtkStandardNewMacro(vtkPVProcessModule);
vtkCxxRevisionMacro(vtkPVProcessModule, "1.2"); vtkCxxRevisionMacro(vtkPVProcessModule, "1.3");
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
vtkPVProcessModule::vtkPVProcessModule() vtkPVProcessModule::vtkPVProcessModule()
...@@ -74,6 +74,10 @@ vtkPVProcessModule::vtkPVProcessModule() ...@@ -74,6 +74,10 @@ vtkPVProcessModule::vtkPVProcessModule()
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
vtkPVProcessModule::~vtkPVProcessModule() vtkPVProcessModule::~vtkPVProcessModule()
{ {
if(this->GUIHelper)
{
this->GUIHelper->Delete();
}
this->FinalizeInterpreter(); this->FinalizeInterpreter();
} }
......
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