Requires:
- https://review.tizen.org/gerrit/119553
Change-Id: Iaac8a02534fd72381a270aa00e00de59756559f0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
ret = handle->ops.create(wc, content_info, w, h, handle->user_data);
if (ret < 0) {
_W("Create callback resturns error(%d)", ret);
ret = handle->ops.create(wc, content_info, w, h, handle->user_data);
if (ret < 0) {
_W("Create callback resturns error(%d)", ret);
+ ret = __send_update_status(handle->classid, wc->id,
+ WIDGET_INSTANCE_EVENT_CREATE_ABORTED, NULL);
+ _widget_app_remove_context(wc);
+ if (wc->id)
+ free(wc->id);
+ if (wc->content)
+ free(wc->content);
+ free(wc);
+
+ if (_widget_app_get_contexts() == NULL && !exit_called)
+ widget_app_exit();
} else {
ret = __send_update_status(handle->classid, wc->id,
WIDGET_INSTANCE_EVENT_CREATE, NULL);
} else {
ret = __send_update_status(handle->classid, wc->id,
WIDGET_INSTANCE_EVENT_CREATE, NULL);