summaryrefslogtreecommitdiff
path: root/src/lib/elm_widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elm_widget.c')
-rw-r--r--src/lib/elm_widget.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index 8ebb23f12..09cd81516 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -1645,6 +1645,11 @@ _elm_widget_event_callback_add(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd, E
1645 EINA_SAFETY_ON_NULL_RETURN(func); 1645 EINA_SAFETY_ON_NULL_RETURN(func);
1646 1646
1647 Elm_Event_Cb_Data *ecb = ELM_NEW(Elm_Event_Cb_Data); 1647 Elm_Event_Cb_Data *ecb = ELM_NEW(Elm_Event_Cb_Data);
1648 if (!ecb)
1649 {
1650 ERR("Failed to allocate memory");
1651 return;
1652 }
1648 ecb->func = func; 1653 ecb->func = func;
1649 ecb->data = data; 1654 ecb->data = data;
1650 sd->event_cb = eina_list_append(sd->event_cb, ecb); 1655 sd->event_cb = eina_list_append(sd->event_cb, ecb);
@@ -5229,6 +5234,11 @@ _elm_widget_item_part_text_custom_set(Eo *eo_item EINA_UNUSED,
5229 if (!label) 5234 if (!label)
5230 { 5235 {
5231 label = malloc(sizeof(Elm_Label_Data)); 5236 label = malloc(sizeof(Elm_Label_Data));
5237 if (!label)
5238 {
5239 ERR("Failed to allocate memory");
5240 return;
5241 }
5232 label->part = eina_stringshare_add(part); 5242 label->part = eina_stringshare_add(part);
5233 label->text = eina_stringshare_add(text); 5243 label->text = eina_stringshare_add(text);
5234 eina_hash_add(item->labels, part, label); 5244 eina_hash_add(item->labels, part, label);