home_genlist_item_s *item;
home_page_genlist_itc = elm_genlist_item_class_new();
+ if (!home_page_genlist_itc) {
+ DMSG_ERR("elm_genlist_item_class_new failed");
+ return;
+ }
+
home_page_genlist_itc->item_style = "multiline";
home_page_genlist_itc->func.text_get = _home_page_genlist_text_get;
home_page_genlist_itc->func.content_get = _home_page_genlist_content_get;
item = (home_genlist_item_s *)malloc(sizeof(home_genlist_item_s));
if (!item) {
DMSG_ERR("malloc failed");
- return;
+ goto out;
}
item->ad = ad;
item = (home_genlist_item_s *)malloc(sizeof(home_genlist_item_s));
if (!item) {
DMSG_ERR("malloc failed");
- return;
+ goto out;
}
item->ad = ad;
item = (home_genlist_item_s *)malloc(sizeof(home_genlist_item_s));
if (!item) {
DMSG_ERR("malloc failed");
- return;
+ goto out;
}
item->ad = ad;
elm_object_item_part_content_set(home_page_data->home_page_navi_it, "toolbar", next_button);
evas_object_smart_callback_add(next_button, "clicked", _next_button_clicked_cb, ad);
+out:
elm_genlist_item_class_free(home_page_genlist_itc);
-
FUNC_END();
}