Commit 2dd3ccbe authored by Bill Lorensen's avatar Bill Lorensen
Browse files

BUG: Memory leak

If vtkInteractorEventRecorder::Play() was called more than once, the
vtksys_ios::istringstream was leaked.

Change-Id: I1bc0f5a446e34e42378a30af790204a8aa080a6a
parent 862b838b
......@@ -176,6 +176,10 @@ void vtkInteractorEventRecorder::Play()
vtkstd::string inputStr(this->InputString, len);
if (this->InputStream)
delete this->InputStream;
this->InputStream = new vtksys_ios::istringstream(inputStr);
if (this->InputStream->fail())
Supports Markdown
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