Commit 28ed7a8e authored by Ken Martin's avatar Ken Martin

LEAK: fix memory leak

parent 16ec924a
......@@ -584,6 +584,7 @@ static int vtkTkImageViewerWidget_MakeImageViewer(struct vtkTkImageViewerWidget
vtkTclGetObjectFromPointer(self->Interp, self->ImageViewer,
vtkImageViewerCommand);
#endif
ckfree (self->IV);
self->IV = strdup(self->Interp->result);
self->Interp->result[0] = '\0';
}
......@@ -756,6 +757,7 @@ vtkTkImageViewerWidget_MakeImageViewer(struct vtkTkImageViewerWidget *self)
vtkTclGetObjectFromPointer(self->Interp, self->ImageViewer,
vtkImageViewerCommand);
#endif
ckfree (self->IV);
self->IV = strdup(self->Interp->result);
self->Interp->result[0] = '\0';
}
......
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