[MPlayer-cvslog] r35846 - trunk/gui/wm/ws.c

ib subversion at mplayerhq.hu
Thu Jan 24 16:27:00 CET 2013


Author: ib
Date: Thu Jan 24 16:27:00 2013
New Revision: 35846

Log:
Disable handler fuctions in wsWindowDestroy().

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Thu Jan 24 15:54:49 2013	(r35845)
+++ trunk/gui/wm/ws.c	Thu Jan 24 16:27:00 2013	(r35846)
@@ -938,6 +938,11 @@ void wsWindowDestroy(wsWindow *win)
     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 @@ void wsWindowDestroy(wsWindow *win)
     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;


More information about the MPlayer-cvslog mailing list