Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_x


Modified Files:
        ecore_x_icccm.c 


Log Message:


man thats bad. leak AND we dont get the client leaer property right! fix.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_icccm.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- ecore_x_icccm.c     12 Jun 2005 11:49:39 -0000      1.33
+++ ecore_x_icccm.c     17 Jun 2005 09:05:22 -0000      1.34
@@ -1042,9 +1042,17 @@
    if (ecore_x_window_prop_property_get(win,
                                        ECORE_X_ATOM_WM_CLIENT_LEADER,
                                        XA_WINDOW, 32, &data, &num))
-      return (Ecore_X_Window) * data;
-   else
-      return 0;
+     {
+       if (data) 
+         {
+            Ecore_X_Window wlead;
+            
+            wlead = *((Ecore_X_Window *)data);
+            free(data);
+            return wlead;
+         }
+     }
+   return 0;
 }
 
 void




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to