Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        ewins.c 


Log Message:
Oops - fix crash when closing internal window.

===================================================================
RCS file: /cvs/e/e16/e/src/ewins.c,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -3 -r1.197 -r1.198
--- ewins.c     18 May 2007 21:18:24 -0000      1.197
+++ ewins.c     18 May 2007 22:46:44 -0000      1.198
@@ -1473,8 +1473,11 @@
    if (ewin->ops && ewin->ops->Close)
       ewin->ops->Close(ewin);
 
-   ESelectInput(EwinGetClientWin(ewin), NoEventMask);
-   XShapeSelectInput(disp, EwinGetClientXwin(ewin), NoEventMask);
+   if (EwinGetClientWin(ewin))
+     {
+       ESelectInput(EwinGetClientWin(ewin), NoEventMask);
+       XShapeSelectInput(disp, EwinGetClientXwin(ewin), NoEventMask);
+     }
 
    EwinDestroy(ewin);
 }



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to