forked from enlightenment/efl
just in case - check if malloc fails.
SVN revision: 55837
This commit is contained in:
parent
f9277782e7
commit
e8056f8f83
|
@ -475,7 +475,7 @@ void
|
|||
_ecore_x_event_handle_any_event(XEvent *xevent)
|
||||
{
|
||||
XEvent *ev = malloc(sizeof(XEvent));
|
||||
|
||||
if (!ev) return;
|
||||
memcpy(ev, xevent, sizeof(XEvent));
|
||||
ecore_event_add(ECORE_X_EVENT_ANY, ev, NULL, NULL);
|
||||
} /* _ecore_x_event_handle_any_event */
|
||||
|
|
Loading…
Reference in New Issue