Edje textblock: Fixed style user memory leak.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 26 Jan 2012 14:03:29 +0000 (14:03 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 26 Jan 2012 14:03:29 +0000 (14:03 +0000)
Thanks to Hermet for spotting this.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@67549 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_util.c

index 1c21f67..2211a3e 100644 (file)
@@ -1075,6 +1075,7 @@ edje_object_part_text_style_user_set(Evas_Object *obj, const char *part,
    ts = evas_textblock_style_new();
    evas_textblock_style_set(ts, style);
    evas_object_textblock_style_user_set(rp->object, ts);
+   evas_textblock_style_free(ts);
 }
 
 EAPI const char *