Fix segfault in client when demarshalling fails

This commit is contained in:
Casey Dahlin 2011-07-18 02:00:24 -04:00 committed by Kristian Høgsberg
parent 068ba750ca
commit 728d09936f

View File

@ -521,6 +521,11 @@ handle_event(struct wl_display *display,
closure = wl_connection_demarshal(display->connection,
size, display->objects, message);
if (closure == NULL) {
fprintf(stderr, "Error demarshalling event: %m\n");
abort();
}
if (wl_debug)
wl_closure_print(closure, &proxy->object, false);