From f06eee8b4ced331538c35618aa88e94d0a0b6cad Mon Sep 17 00:00:00 2001 From: raster Date: Sun, 5 Dec 2010 03:12:34 +0000 Subject: [PATCH] maybe fix del ref 0 string then add it back with same handle? git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@55264 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_text.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/edje_text.c b/src/lib/edje_text.c index 0c80c95..84cbf64 100644 --- a/src/lib/edje_text.c +++ b/src/lib/edje_text.c @@ -321,7 +321,7 @@ _edje_text_recalc_apply(Edje *ed, Edje_Real_Part *ep, Edje_Calc_Params *params, Edje_Part_Description_Text *chosen_desc) { - const char *text; + const char *text, *str; const char *font; char *font2 = NULL; char *sfont = NULL; @@ -553,8 +553,9 @@ _edje_text_recalc_apply(Edje *ed, Edje_Real_Part *ep, text = _edje_text_fit_x(ed, ep, params, text, font, size, sw, &free_text); } + str = eina_stringshare_add(text); if (ep->text.cache.out_str) eina_stringshare_del(ep->text.cache.out_str); - ep->text.cache.out_str = eina_stringshare_add(text); + ep->text.cache.out_str = str; ep->text.cache.in_w = sw; ep->text.cache.in_h = sh; ep->text.cache.out_size = size; -- 2.7.4