static void _drawing_item_clicked_cb(void *data, Evas_Object * obj, void *event_info)
{
+ int ret;
PRINTFUNC(DLOG_DEBUG, "%s", __func__);
App_Data* ad = (App_Data*) data;
if (!ad)
/* launch */
app_control_h request = NULL;
- app_control_create(&request);
- app_control_set_app_id(request, "org.tizen.sketch");
+ ret = app_control_create(&request);
+ if (ret != APP_CONTROL_ERROR_NONE) {
+ PRINTFUNC(DLOG_DEBUG, "error code = 0x%x", ret);
+ return;
+ }
+
+ ret = app_control_set_app_id(request, "org.tizen.sketch");
+ if (ret != APP_CONTROL_ERROR_NONE) {
+ PRINTFUNC(DLOG_DEBUG, "error code = 0x%x", ret);
+ app_control_destroy(request);
+ return;
+ }
- int ret = app_control_send_launch_request(request, _drawing_app_control_reply_cb, NULL);
+ ret = app_control_send_launch_request(request, _drawing_app_control_reply_cb, NULL);
if (ret != APP_CONTROL_ERROR_NONE) {
PRINTFUNC(DLOG_DEBUG, "error code = 0x%x", ret);
}