efl: and fix a potential memory leak.

SVN revision: 81922
This commit is contained in:
Cedric BAIL 2012-12-31 01:59:00 +00:00
parent db2a8c62f4
commit e985899c9c
1 changed files with 2 additions and 0 deletions

View File

@ -973,6 +973,8 @@ _text_text_set(Eo *eo_obj, void *_pd, va_list *list)
eina_stringshare_replace(&o->cur.utf8_text, _text);
o->prev.utf8_text = NULL;
if (o->cur.text != text) free(text);
o->changed = 1;
evas_object_change(eo_obj, obj);
evas_object_clip_dirty(eo_obj, obj);