}
ev = malloc(sizeof(Ecore_IMF_Event_Preedit_Start));
+ EINA_SAFETY_ON_NULL_RETURN(ev);
+
ev->ctx = ctx;
ecore_event_add(ECORE_IMF_EVENT_PREEDIT_START,
ev, _ecore_imf_event_free_preedit, NULL);
}
ev = malloc(sizeof(Ecore_IMF_Event_Preedit_End));
+ EINA_SAFETY_ON_NULL_RETURN(ev);
+
ev->ctx = ctx;
ecore_event_add(ECORE_IMF_EVENT_PREEDIT_END,
ev, _ecore_imf_event_free_preedit, NULL);
}
ev = malloc(sizeof(Ecore_IMF_Event_Preedit_Changed));
+ EINA_SAFETY_ON_NULL_RETURN(ev);
+
ev->ctx = ctx;
ecore_event_add(ECORE_IMF_EVENT_PREEDIT_CHANGED,
ev, _ecore_imf_event_free_preedit, NULL);
}
ev = malloc(sizeof(Ecore_IMF_Event_Commit));
+ EINA_SAFETY_ON_NULL_RETURN(ev);
+
ev->ctx = ctx;
ev->str = str ? strdup(str) : NULL;
ecore_event_add(ECORE_IMF_EVENT_COMMIT,
if (ctx->klass->mime_type_accept_set)
ctx->klass->mime_type_accept_set(ctx, mime_type);
-}
\ No newline at end of file
+}
modules = eina_hash_string_superfast_new(EINA_FREE_CB(_ecore_imf_module_free));
module = malloc(sizeof(Ecore_IMF_Module));
+ EINA_SAFETY_ON_NULL_RETURN(module);
+
module->info = info;
/* cache imf_module_create as it may be used several times */
module->create = imf_module_create;