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

try to fix leak

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