Commit 83f4b862 authored by Ken Martin's avatar Ken Martin Committed by Kitware Robot

Merge topic 'fix_debug_leaks'

8569eb92 fix an issue with debug leaks and vtkCommand
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel's avatarBen Boeckel <ben.boeckel@kitware.com>
Merge-request: !5033
parents 870d668f 8569eb92
......@@ -15,11 +15,15 @@
#include "vtkCommand.h"
#include "vtkDebugLeaks.h"
#ifdef VTK_DEBUG_LEAKS
static const char *leakname = "vtkCommand or subclass";
#endif
//----------------------------------------------------------------
vtkCommand::vtkCommand():AbortFlag(0),PassiveObserver(0)
{
#ifdef VTK_DEBUG_LEAKS
vtkDebugLeaks::ConstructClass("vtkCommand or subclass");
vtkDebugLeaks::ConstructClass(leakname);
#endif
}
......@@ -31,7 +35,7 @@ void vtkCommand::UnRegister()
if (refcount <= 0)
{
#ifdef VTK_DEBUG_LEAKS
vtkDebugLeaks::DestructClass("vtkCommand or subclass");
vtkDebugLeaks::DestructClass(leakname);
#endif
delete this;
}
......
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