* evas: prevent early death of stringshare.

SPANK ! SPANK ! SPANK !

	PLEASE USE STRINGSHARE REPLACE EVERY TIME YOU DO
	A STRINGSHARE_DEL FOLLOWED BY A STRINGSHARE_ADD.



SVN revision: 57057
This commit is contained in:
Cedric BAIL 2011-02-15 17:24:55 +00:00
parent 24f943fa3d
commit a7d7ae4360
1 changed files with 3 additions and 4 deletions

View File

@ -688,16 +688,15 @@ evas_object_text_text_set(Evas_Object *obj, const char *_text)
/*Update bidi_props*/
if (o->items) _evas_object_text_items_clear(o);
if (o->cur.utf8_text) eina_stringshare_del(o->cur.utf8_text);
if ((text) && (*text))
{
_evas_object_text_layout(obj, o, text);
o->cur.utf8_text = eina_stringshare_add(_text);
}
eina_stringshare_replace(&o->cur.utf8_text, _text);
}
else
{
o->cur.utf8_text = NULL;
eina_stringshare_replace(&o->cur.utf8_text, NULL);
}
if (text)
{