summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2015-05-04 11:45:06 +0200
committerLukasz Stanislawski <l.stanislaws@samsung.com>2015-05-04 11:46:05 +0200
commit2123a813459f291553303c29d834436d2058cb6c (patch)
treeafac8a1a36fdeb9bcf5584b2d276f02b8fe06306
parentef4c303dc390f5f05c62f9836c98108550980657 (diff)
gengrid: fix mem leak occuring when getting name from atspi interface
-rw-r--r--src/lib/elm_gengrid.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index f22886e26..696292cf5 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -4956,17 +4956,19 @@ _elm_gengrid_item_elm_interface_atspi_accessible_name_get(Eo *eo_it EINA_UNUSED,
4956 4956
4957 EINA_LIST_FREE(texts, key) 4957 EINA_LIST_FREE(texts, key)
4958 { 4958 {
4959 char *s = it->itc->func.text_get 4959 char *str_markup = it->itc->func.text_get
4960 ((void *)WIDGET_ITEM_DATA_GET(EO_OBJ(it)), WIDGET(it), key); 4960 ((void *)WIDGET_ITEM_DATA_GET(EO_OBJ(it)), WIDGET(it), key);
4961 4961
4962 s = _elm_util_mkup_to_text(s); 4962 char *str_utf8 = _elm_util_mkup_to_text(str_markup);
4963 4963
4964 if (s) 4964 free(str_markup);
4965
4966 if (str_utf8)
4965 { 4967 {
4966 if (eina_strbuf_length_get(buf) > 0) 4968 if (eina_strbuf_length_get(buf) > 0)
4967 eina_strbuf_append(buf, ", "); 4969 eina_strbuf_append(buf, ", ");
4968 eina_strbuf_append(buf, s); 4970 eina_strbuf_append(buf, str_utf8);
4969 free(s); 4971 free(str_utf8);
4970 } 4972 }
4971 } 4973 }
4972 } 4974 }