Commit 7eda0c42 authored by Bill Lorensen's avatar Bill Lorensen

ERR: malloc -> ckalloc.

parent 07327a54
......@@ -232,7 +232,7 @@ int vtkTkImageViewerWidget_Cmd(ClientData clientData,
// Create vtkTkImageViewerWidget data structure
self = (struct vtkTkImageViewerWidget *)
malloc(sizeof(struct vtkTkImageViewerWidget));
ckalloc(sizeof(struct vtkTkImageViewerWidget));
self->TkWin = tkwin;
self->Interp = interp;
self->Width = 0;
......@@ -300,7 +300,7 @@ static void vtkTkImageViewerWidget_Destroy(char *memPtr)
self->ImageViewer->UnRegister(NULL);
self->ImageViewer = NULL;
ckfree (self->IV);
}
}
ckfree((char *) memPtr);
}
......
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