summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-01-04 06:10:31 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-01-04 06:10:31 +0000
commite8056f8f83980e41566332fe607f5586aa84641a (patch)
tree7e71404e39816bef97df13841aa79fd582152cfd /legacy
parentf9277782e705d5cdaa460fbbf3167fb6947ddb32 (diff)
just in case - check if malloc fails.
SVN revision: 55837
Diffstat (limited to 'legacy')
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_events.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_events.c
index 7368602aef..dfa1aa2c6e 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_events.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_events.c
@@ -475,7 +475,7 @@ void
475_ecore_x_event_handle_any_event(XEvent *xevent) 475_ecore_x_event_handle_any_event(XEvent *xevent)
476{ 476{
477 XEvent *ev = malloc(sizeof(XEvent)); 477 XEvent *ev = malloc(sizeof(XEvent));
478 478 if (!ev) return;
479 memcpy(ev, xevent, sizeof(XEvent)); 479 memcpy(ev, xevent, sizeof(XEvent));
480 ecore_event_add(ECORE_X_EVENT_ANY, ev, NULL, NULL); 480 ecore_event_add(ECORE_X_EVENT_ANY, ev, NULL, NULL);
481} /* _ecore_x_event_handle_any_event */ 481} /* _ecore_x_event_handle_any_event */