Commit 06d77690 authored by Will Schroeder's avatar Will Schroeder

fixed some purify issues

parent 8e396950
......@@ -343,6 +343,15 @@ static void vtkTkImageViewerWidget_EventProc(ClientData clientData,
case MapNotify:
break;
case DestroyNotify:
#if _WIN32
if (self->ImageViewer->GetRenderWindow()->GetGenericWindowId())
{
SetWindowLong((HWND)self->ImageViewer->GetRenderWindow()->GetGenericWindowId(),
GWL_USERDATA,(LONG)((TkWindow *)self->TkWin)->window);
SetWindowLong((HWND)self->ImageViewer->GetRenderWindow()->GetGenericWindowId(),
GWL_WNDPROC,(LONG)TkWinChildProc);
}
#endif
Tcl_EventuallyFree( (ClientData) self, vtkTkImageViewerWidget_Destroy );
break;
default:
......
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