Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/canvas Modified Files: evas_object_text.c Log Message: valgrind problems... valgrind told me so! :) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/canvas/evas_object_text.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -3 -r1.28 -r1.29 --- evas_object_text.c 17 Aug 2004 06:03:38 -0000 1.28 +++ evas_object_text.c 28 Aug 2004 01:38:31 -0000 1.29 @@ -652,11 +652,13 @@ } #endif } - if (o->cur.font) free(o->cur.font); - if (font) o->cur.font = strdup(font); - else o->cur.font = NULL; - if (!same_font) o->prev.font = NULL; - + if (!same_font) + { + if (o->cur.font) free(o->cur.font); + if (font) o->cur.font = strdup(font); + else o->cur.font = NULL; + o->prev.font = NULL; + } o->cur.size = size; if ((o->engine_data) && (o->cur.text)) { ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs