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,
if (text_input->resource == NULL) {
ds_err("text_input. wl_resource_create() failed.");
wl_client_post_no_memory(wl_client);
+ free(text_input);
return;
}
wl_resource_set_implementation(text_input->resource, &text_input_impl,