summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-12-31 01:59:00 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-12-31 01:59:00 +0000
commite985899c9ca99b73e0c1313be286e16c034d27be (patch)
treedb0be9cdd06f348dbf9dfb8f2f4ec36ac470d70d
parentdb2a8c62f45f74fc43676719016d44d169419875 (diff)
efl: and fix a potential memory leak.
SVN revision: 81922
-rw-r--r--src/lib/evas/canvas/evas_object_text.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_text.c b/src/lib/evas/canvas/evas_object_text.c
index 61a8649409..62b0db7262 100644
--- a/src/lib/evas/canvas/evas_object_text.c
+++ b/src/lib/evas/canvas/evas_object_text.c
@@ -973,6 +973,8 @@ _text_text_set(Eo *eo_obj, void *_pd, va_list *list)
973 eina_stringshare_replace(&o->cur.utf8_text, _text); 973 eina_stringshare_replace(&o->cur.utf8_text, _text);
974 o->prev.utf8_text = NULL; 974 o->prev.utf8_text = NULL;
975 975
976 if (o->cur.text != text) free(text);
977
976 o->changed = 1; 978 o->changed = 1;
977 evas_object_change(eo_obj, obj); 979 evas_object_change(eo_obj, obj);
978 evas_object_clip_dirty(eo_obj, obj); 980 evas_object_clip_dirty(eo_obj, obj);