/* Add scrollable title area in wearable profile */
Elm_Object_Item *it;
Elm_Genlist_Item_Class *ttc = elm_genlist_item_class_new();
+
+ if (!ttc)
+ return;
+
ttc->item_style = "title";
ttc->func.text_get = title ? _title_text_get : NULL;
it = elm_genlist_item_append(genlist, ttc, title, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
if (autoscroll)
evas_object_smart_callback_add(genlist, "realized", gl_realized_cb, NULL);
-}
-
+}
\ No newline at end of file