Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_text.c Log Message: we switched to shared strings in text contexts, so don't use strdup in ewl_text either =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v retrieving revision 1.175 retrieving revision 1.176 diff -u -3 -r1.175 -r1.176 --- ewl_text.c 16 Aug 2007 14:14:56 -0000 1.175 +++ ewl_text.c 17 Aug 2007 15:03:47 -0000 1.176 @@ -1112,13 +1112,13 @@ DCHECK_TYPE("t", t, EWL_TEXT_TYPE); change = ewl_text_context_new(); - if (source) change->font_source = strdup(source); + if (source) change->font_source = ecore_string_instance(source); /* null font will go back to the theme default */ if (!font) font = ewl_theme_data_str_get(EWL_WIDGET(t), "font"); /* Duplicate a local copy of the font */ - if (font) change->font = strdup(font); + if (font) change->font = ecore_string_instance(font); ewl_text_current_fmt_set(t, EWL_TEXT_CONTEXT_MASK_FONT, change); ewl_text_context_release(change); @@ -1151,13 +1151,13 @@ tx = ewl_text_context_new(); - if (source) tx->font_source = strdup(source); + if (source) tx->font_source = ecore_string_instance(source); /* null font will go back to the theme default */ if (!font) font = ewl_theme_data_str_get(EWL_WIDGET(t), "font"); /* Duplicate a local copy of the font */ - if (font) tx->font = strdup(font); + if (font) tx->font = ecore_string_instance(font); ewl_text_fmt_apply(t->formatting.nodes, EWL_TEXT_CONTEXT_MASK_FONT, tx, t->cursor_position, char_len); @@ -2653,7 +2653,7 @@ /* handle default values */ font = ewl_theme_data_str_get(EWL_WIDGET(t), "font"); - if (font) tmp->font = strdup(font); + if (font) tmp->font = ecore_string_instance(font); tmp->font_source = NULL; tmp->size = ewl_theme_data_int_get(EWL_WIDGET(t), "font_size"); ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs