just in case - check if malloc fails.

SVN revision: 55837
This commit is contained in:
Carsten Haitzler 2011-01-04 06:10:31 +00:00
parent f9277782e7
commit e8056f8f83
1 changed files with 1 additions and 1 deletions

View File

@ -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 */