Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_box.c 


Log Message:
mem leak--
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_box.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- ewl_box.c   7 Jan 2006 21:04:38 -0000       1.20
+++ ewl_box.c   8 Jan 2006 10:55:34 -0000       1.21
@@ -204,6 +204,8 @@
        DCHECK_PARAM_PTR("b", b);
        DCHECK_TYPE("b", b, "box");
 
+        char *appearance;
+
        /*
         * Set the orientation and reconfigure the widget so that child
         * widgets now have the new orientation layout
@@ -217,14 +219,14 @@
         * the appearance if it is still set to box. Otherwise we might end
         * up wipeing out the appearance of an inheriting widget (like
         * menubar */
+        appearance = ewl_widget_appearance_get(EWL_WIDGET(b));
        if ((b->orientation == EWL_ORIENTATION_HORIZONTAL)
-                       && (!strcmp(ewl_widget_appearance_get(EWL_WIDGET(b)),
-                                                               "vbox")))
+                       && (!strcmp(appearance, "vbox")))
                ewl_widget_appearance_set(EWL_WIDGET(b), "hbox");
        else if ((b->orientation == EWL_ORIENTATION_VERTICAL)
-                       && (!strcmp(ewl_widget_appearance_get(EWL_WIDGET(b)),
-                                                               "hbox")))
+                       && (!strcmp(appearance, "hbox")))
                ewl_widget_appearance_set(EWL_WIDGET(b), "vbox");
+        IF_FREE(appearance);
 
        ewl_widget_configure(EWL_WIDGET(b));
 




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to