summaryrefslogtreecommitdiff
path: root/src/lib/elm_interface_atspi_accessible.c
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2014-07-21 15:44:16 +0200
committerLukasz Stanislawski <l.stanislaws@samsung.com>2014-07-21 15:44:16 +0200
commitad89be779dd750484ccae597785e0d39bafcefe0 (patch)
tree7630e0a6b08054020ff9171a50390a13ce9f9d95 /src/lib/elm_interface_atspi_accessible.c
parentd50d855d5f559464f8469dd2ccf9dd514b84f93a (diff)
downloadelementary-ad89be779dd750484ccae597785e0d39bafcefe0.tar.gz
atspi: fix mem leak in attributes free function
Diffstat (limited to 'src/lib/elm_interface_atspi_accessible.c')
-rw-r--r--src/lib/elm_interface_atspi_accessible.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/elm_interface_atspi_accessible.c b/src/lib/elm_interface_atspi_accessible.c
index 4c25a2084..7c2eb2326 100644
--- a/src/lib/elm_interface_atspi_accessible.c
+++ b/src/lib/elm_interface_atspi_accessible.c
@@ -277,10 +277,11 @@ void elm_atspi_attributes_list_free(Eina_List *list)
{
Elm_Atspi_Attribute *attr;
EINA_LIST_FREE(list, attr)
- {
- eina_stringshare_del(attr->key);
- eina_stringshare_del(attr->value);
- }
+ {
+ eina_stringshare_del(attr->key);
+ eina_stringshare_del(attr->value);
+ free(attr);
+ }
}
#include "elm_interface_atspi_accessible.eo.c"