summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2017-03-16 11:39:08 +0900
committerHwanKyu Jhun <h.jhun@samsung.com>2017-03-15 19:41:29 -0700
commitdad8b9e077617e32e5c62fb6b6716dc04249f679 (patch)
treecd28efabbabc78a609a5fec6807e0a9b59f68a8e
parent0c9faf0db7a4b3776c9a097e6952f8393087f01a (diff)
downloadappcore-widget-dad8b9e077617e32e5c62fb6b6716dc04249f679.tar.gz
appcore-widget-dad8b9e077617e32e5c62fb6b6716dc04249f679.tar.bz2
appcore-widget-dad8b9e077617e32e5c62fb6b6716dc04249f679.zip
Change-Id: I9cc598c0b9252b16946aa93771290538854ddd68 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rwxr-xr-xsrc/widget_app.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/widget_app.c b/src/widget_app.c
index 3911a6d..6cedfa8 100755
--- a/src/widget_app.c
+++ b/src/widget_app.c
@@ -455,8 +455,10 @@ static int __instance_create(widget_class_h handle, const char *id, const char *
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);
@@ -473,6 +475,7 @@ static int __instance_create(widget_class_h handle, const char *id, const char *
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,