e = calloc(1, sizeof(Ecore_Event_Key) + strlen(key) +
strlen(keyname) + (compose ? strlen(compose) : 0) + 3);
+ if (!e)
+ return;
+
e->keyname = (char *)(e + 1);
e->key = e->keyname + strlen(keyname) + 1;
e->compose = (compose) ? e->key + strlen(key) + 1 : NULL;
{
Ecore_Event_Mouse_Move *ev;
ev = calloc(1,sizeof(Ecore_Event_Mouse_Move));
+ if (!ev)
+ return;
ev->x = dev->mouse.x;
ev->y = dev->mouse.y;
ev->root.x = ev->x;
{
Ecore_Event_Mouse_Button *ev;
ev = calloc(1, sizeof(Ecore_Event_Mouse_Button));
+ if (!ev)
+ return;
ev->x = dev->mouse.x;
ev->y = dev->mouse.y;
ev->root.x = ev->x;
{
Ecore_Event_Mouse_Button *ev;
ev = calloc(1, sizeof(Ecore_Event_Mouse_Button));
+ if (!ev)
+ return;
ev->x = dev->mouse.x;
ev->y = dev->mouse.y;
ev->root.x = ev->x;