summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_dayselector.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-04 14:52:25 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:18 -0700
commitc753fc793ba49a7d6dc5b8a4680b4804b6673dd9 (patch)
tree572a7980ba88fc67f9e9ac258722f4d4449e8e0f /src/lib/elementary/elm_dayselector.c
parent1991900fd6ede8488866a542302ba6b2f5899ad3 (diff)
elementary: dayselector use efl_add to create the object, calling efl_del during destructor make no sense.
Differential Revision: https://phab.enlightenment.org/D6106
Diffstat (limited to 'src/lib/elementary/elm_dayselector.c')
-rw-r--r--src/lib/elementary/elm_dayselector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_dayselector.c b/src/lib/elementary/elm_dayselector.c
index 4334eca..8efbfd8 100644
--- a/src/lib/elementary/elm_dayselector.c
+++ b/src/lib/elementary/elm_dayselector.c
@@ -175,7 +175,7 @@ _item_del_cb(void *data,
175 elm_layout_signal_emit(obj, buf, "elm"); 175 elm_layout_signal_emit(obj, buf, "elm");
176 176
177 VIEW(it) = NULL; 177 VIEW(it) = NULL;
178 efl_del(EO_OBJ(it)); 178 // The object is already being deleted, there is no point in calling efl_del on it.
179 179
180 elm_layout_sizing_eval(obj); 180 elm_layout_sizing_eval(obj);
181 break; 181 break;
@@ -437,7 +437,7 @@ _elm_dayselector_efl_canvas_group_group_del(Eo *obj, Elm_Dayselector_Data *sd)
437 { 437 {
438 sd->items = eina_list_remove(sd->items, it); 438 sd->items = eina_list_remove(sd->items, it);
439 eina_stringshare_del(it->day_style); 439 eina_stringshare_del(it->day_style);
440 efl_del(EO_OBJ(it)); 440 // No need to efl_del the object as they have been created by efl_add and are dead by now.
441 } 441 }
442 442
443 /* handles freeing sd */ 443 /* handles freeing sd */