summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorBowon Ryu <bowon.ryu@samsung.com>2018-12-05 20:28:24 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-12-05 20:28:24 +0900
commitede6c1316bc6aa443947f707ccbc9b5164b1782e (patch)
tree7c209f0e8cdb4691a010edae0e00a14445d8508e /src/lib/elementary
parentf15c1f1417ec2994959d5f198df6d1e9a52cff53 (diff)
efl_ui_tab_bar: fix error about double free
Summary: tab is the parent of the icon. so deleting the tab causes deleting the icon automatically. in this case, it can cause double-freed problem once icon has deleted. Test Plan: elementary_test -to efl.ui.tab_pager Reviewers: cedric, Jaehyun_Cho, jpeg Reviewed By: Jaehyun_Cho Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7407
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/efl_ui_tab_bar.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_tab_bar.c b/src/lib/elementary/efl_ui_tab_bar.c
index 7aeb78cf5f..7d9f5c29dc 100644
--- a/src/lib/elementary/efl_ui_tab_bar.c
+++ b/src/lib/elementary/efl_ui_tab_bar.c
@@ -298,7 +298,6 @@ _efl_ui_tab_bar_tab_remove(Eo *obj EINA_UNUSED, Efl_Ui_Tab_Bar_Data *sd, int ind
298 _tab_unselect(sd, ti); 298 _tab_unselect(sd, ti);
299 evas_object_box_remove(sd->bx, ti->tab); 299 evas_object_box_remove(sd->bx, ti->tab);
300 efl_del(ti->tab); 300 efl_del(ti->tab);
301 efl_del(ti->icon);
302 301
303 sd->tab_infos = eina_list_remove(sd->tab_infos, ti); 302 sd->tab_infos = eina_list_remove(sd->tab_infos, ti);
304 sd->cnt --; 303 sd->cnt --;