Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

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


Modified Files:
        ecore_x_window_prop.c 


Log Message:


leak schmeak! bad!

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window_prop.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- ecore_x_window_prop.c       19 Nov 2004 05:49:16 -0000      1.51
+++ ecore_x_window_prop.c       24 Nov 2004 08:52:22 -0000      1.52
@@ -839,6 +839,7 @@
 {
    unsigned char *data;
    int num;
+   int borderless = 0;
 
    ecore_x_window_prop_property_get(win,
                                     _ecore_x_atom_motif_wm_hints,
@@ -848,7 +849,12 @@
    /* check for valid data. only read the borderless flag if the
     * decorations data has been set.
     */
-   return (data && num > 2 && data[0] & 2) ? !data[2] : 0;
+   if (data)
+     {
+       borderless = ((num > 2) && (data[0] & 2)) ? !data[2] : 0;
+       free(data);
+     }
+   return borderless;
 }
 
 /**




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to