Commit a60f2984 authored by David C. Lonie's avatar David C. Lonie Committed by Code Review
Browse files

Merge topic 'debug-leaks-type-template' into master

179864e2 Fix vtkDebugLeaks when templated classes are used.
parents fd0863d6 179864e2
......@@ -309,8 +309,9 @@ vtkObjectFactory* vtkLoad() \
#elif defined(VTK_DEBUG_LEAKS)
# define VTK_STANDARD_NEW_BODY(thisClass) \
vtkObjectFactory::ConstructInstance(#thisClass); \
return new thisClass;
thisClass *result = new thisClass; \
vtkObjectFactory::ConstructInstance(result->GetClassName()); \
return result;
# define VTK_STANDARD_NEW_BODY(thisClass) \
return new thisClass;
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