# HG changeset patch # User ib # Date 1359041220 0 # Node ID d302b71c644e38c903d31c2c4ba76b3876c7a9e0 # Parent 0d703832d865b8faf7ba44426503a7440c7b5ca4 Disable handler fuctions in wsWindowDestroy(). diff -r 0d703832d865 -r d302b71c644e gui/wm/ws.c --- a/gui/wm/ws.c Thu Jan 24 14:54:49 2013 +0000 +++ b/gui/wm/ws.c Thu Jan 24 15:27:00 2013 +0000 @@ -938,6 +938,11 @@ if (l != -1) wsWindowList[l] = NULL; + win->ReDraw = NULL; + win->MouseHandler = NULL; + win->KeyHandler = NULL; + win->DandDHandler = NULL; + if (win->wsCursor != None) { XFreeCursor(wsDisplay, win->wsCursor); win->wsCursor = None; @@ -948,9 +953,6 @@ wsImageDestroy(win); XDestroyWindow(wsDisplay, win->WindowID); #if 0 - win->ReDraw = NULL; - win->MouseHandler = NULL; - win->KeyHandler = NULL; win->Visible = wsNo; win->Focused = wsNo; win->Mapped = wsNo;