Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_iconbox.c 


Log Message:
Free memory where ewl_image is not freeing string

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_iconbox.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- ewl_iconbox.c       5 Aug 2005 11:05:40 -0000       1.17
+++ ewl_iconbox.c       24 Aug 2005 02:21:54 -0000      1.18
@@ -697,7 +697,7 @@
 
                ewl_text_bg_color_set(EWL_TEXT(ib->w_label), 0, 0, 255, 255);
                ewl_text_cursor_position_set(EWL_TEXT(ib->w_label), 0);
-               ewl_text_color_apply(EWL_TEXT(ib->w_label), 0, 0, 255, 255, 
strlen(ib->label));
+               ewl_text_color_apply(EWL_TEXT(ib->w_label), 0, 0, 255, 255, 
ewl_text_length_get(EWL_TEXT(ib->w_label)));
        }
 
 
@@ -743,6 +743,8 @@
 void ewl_iconbox_icon_destroy_cb(Ewl_Widget *w, void *ev_data __UNUSED__,
                                        void *user_data __UNUSED__)
 {
+       printf("Called destroy on icon...\n");
+       
        Ewl_IconBox_Icon* icon = EWL_ICONBOX_ICON(w);
        
        DENTER_FUNCTION(DLEVEL_STABLE);
@@ -756,6 +758,9 @@
        ewl_widget_destroy(icon->w_label);
        ewl_widget_destroy(icon->floater);
 
+       /*Temporary hack to nuke the ewl_image path str*/
+       if (EWL_IMAGE(icon->image)->path) free(EWL_IMAGE(icon->image)->path);
+
        if (icon->label) {
                free(icon->label);
        }




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to