Skip to content
Snippets Groups Projects
Commit f94cb4f8 authored by David Gobbi's avatar David Gobbi
Browse files

COMP: Try to fix memory leak in TestStringToNumeric.

On some machines (e.g. Win32-VS91) this test seems to have a leak
related to vtkNew, but on other machines (e.g. linux-g++) the leak
is absent.  This commit is an attempt to investigate the issue.

Change-Id: Ic79a4fac4c3844732ec042900cd867d54c2eac3f
parent d1f9864a
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@
#include "vtkTestUtilities.h"
#include "vtkMath.h"
#include "vtkSmartPointer.h"
#include "vtkNew.h"
namespace
......@@ -43,7 +44,9 @@ int ArrayTypesTest(int argc, char* argv[])
delete [] file;
vtkNew<vtkStringToNumeric> numeric;
vtkSmartPointer<vtkStringToNumeric> numeric =
vtkSmartPointer<vtkStringToNumeric>::New();
numeric->SetInputConnection(reader->GetOutputPort());
numeric->Update();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment