Change-Id: I9cc598c0b9252b16946aa93771290538854ddd68
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
bundle *content_info = NULL;
wc = (widget_context_s *)calloc(1, sizeof(widget_context_s));
- if (!wc)
+ if (!wc) {
+ _E("Out of memory");
return WIDGET_ERROR_OUT_OF_MEMORY;
+ }
wc->state = WC_READY;
wc->id = strdup(id);
ret = handle->ops.create(wc, content_info, w, h, handle->user_data);
if (ret < 0) {
+ _W("Create callback resturns error(%d)", ret);
/* TODO send abort */
} else {
ret = __send_update_status(handle->classid, wc->id,