cedric pushed a commit to branch master.
commit 21ad1916aeb90b4a5a51e1ad4a8c98ce0cb6a7cb
Author: Cedric Bail <[email protected]>
Date: Thu Jul 11 16:02:27 2013 +0900
edje: remove a stringshare leak on object close with textblock.
---
src/lib/edje/edje_textblock_styles.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lib/edje/edje_textblock_styles.c
b/src/lib/edje/edje_textblock_styles.c
index a249649..32fa677 100644
--- a/src/lib/edje/edje_textblock_styles.c
+++ b/src/lib/edje/edje_textblock_styles.c
@@ -413,11 +413,12 @@ _edje_textblock_style_cleanup(Edje_File *edf)
tag = stl->tags->data;
stl->tags = eina_list_remove_list(stl->tags, stl->tags);
+ if (tag->value &&
eet_dictionary_string_check(eet_dictionary_get(edf->ef), tag->value) == 0)
+ eina_stringshare_del(tag->value);
if (edf->free_strings)
{
if (tag->key) eina_stringshare_del(tag->key);
/* FIXME: Find a proper way to handle it. */
- if (tag->value) eina_stringshare_del(tag->value);
if (tag->text_class) eina_stringshare_del(tag->text_class);
if (tag->font) eina_stringshare_del(tag->font);
}
--
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk