summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSubodh Kumar <s7158.kumar@samsung.com>2015-09-25 09:49:18 +0100
committerTom Hacohen <tom@stosb.com>2015-09-25 09:49:18 +0100
commitdf190346a154822d9cead0619cb7957fcfeaefd8 (patch)
tree5b59676d3cd6341abac8dd3bb0ca951bc06959a0 /src
parent7413d7ca98ade543e5452202e1a39ff19aa6607f (diff)
Edje entry: Make cursors to null after free
Summary: Edje entry: Make cursors to null after free To prevent any illegal access of cursors can lead to crash @fix Test Plan: NA Reviewers: tasn Reviewed By: tasn Subscribers: shilpasingh, cedric Differential Revision: https://phab.enlightenment.org/D3093
Diffstat (limited to 'src')
-rw-r--r--src/lib/edje/edje_entry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index e32a52e9da..b6cbf84736 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -1100,8 +1100,6 @@ _anchors_clear(Evas_Textblock_Cursor *c EINA_UNUSED, Evas_Object *o EINA_UNUSED,
1100 { 1100 {
1101 Anchor *an = en->anchors->data; 1101 Anchor *an = en->anchors->data;
1102 1102
1103 evas_textblock_cursor_free(an->start);
1104 evas_textblock_cursor_free(an->end);
1105 while (an->sel) 1103 while (an->sel)
1106 { 1104 {
1107 Sel *sel = an->sel->data; 1105 Sel *sel = an->sel->data;
@@ -1111,6 +1109,8 @@ _anchors_clear(Evas_Textblock_Cursor *c EINA_UNUSED, Evas_Object *o EINA_UNUSED,
1111 free(sel); 1109 free(sel);
1112 an->sel = eina_list_remove_list(an->sel, an->sel); 1110 an->sel = eina_list_remove_list(an->sel, an->sel);
1113 } 1111 }
1112 evas_textblock_cursor_free(an->start);
1113 evas_textblock_cursor_free(an->end);
1114 free(an->name); 1114 free(an->name);
1115 free(an); 1115 free(an);
1116 en->anchors = eina_list_remove_list(en->anchors, en->anchors); 1116 en->anchors = eina_list_remove_list(en->anchors, en->anchors);