Fix segfault in client when demarshalling fails
This commit is contained in:
parent
068ba750ca
commit
728d09936f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user