Commit 98bafeb5 authored by Ken Martin's avatar Ken Martin Committed by Kitware Robot

Merge topic 'SEPReader-Fix_memory_leak-GF'

fd2f174c Fix memory-leak.
Acked-by: Kitware Robot's avatarKitware Robot <>
Merge-request: !5000
parents 16e07002 fd2f174c
......@@ -34,20 +34,22 @@
int TestSEPReader(int argc, char *argv[])
std::string filename =
vtkTestUtilities::ExpandDataFileName(argc, argv, "Data/small.H");
char* filename =
vtkTestUtilities::ExpandDataFileName(argc, argv, "Data/small.H");
vtkNew<vtkSEPReader> SEPReader;
// Check the image can be read
if (!SEPReader->CanReadFile(filename.c_str()))
if (!SEPReader->CanReadFile(filename))
std::cerr << "CanReadFile failed for " << filename.c_str() << "\n";
std::cerr << "CanReadFile failed for " << filename << "\n";
delete filename;
// Read the input image
delete filename;
// Check the image properties
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