ds_inf("ds_tizen_input_method_create_context");
context = calloc(1, sizeof *context);
- if (context == NULL)
+ if (context == NULL) {
+ ds_err("calloc() failed. ds_tizen_input_method_context");
return NULL;
+ }
binding = input_method->resource;
if (!binding) return NULL;
&zwp_input_method_context_v1_interface, INPUT_METHOD_VERSION, 0);
if (context->resource == NULL) {
ds_err("context. wl_resource_create() failed.");
+ free(context);
return NULL;
}
wl_resource_set_implementation(context->resource, &context_impl,