mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
connection-test: assert closure is not NULL before invoking it
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
parent
fcf5f06b7d
commit
3a1be1e6fe
1 changed files with 1 additions and 0 deletions
|
|
@ -418,6 +418,7 @@ marshal_demarshal(struct marshal_data *data,
|
||||||
object.id = msg[0];
|
object.id = msg[0];
|
||||||
closure = wl_connection_demarshal(data->read_connection,
|
closure = wl_connection_demarshal(data->read_connection,
|
||||||
size, &objects, &message);
|
size, &objects, &message);
|
||||||
|
assert(closure);
|
||||||
wl_closure_invoke(closure, WL_CLOSURE_INVOKE_SERVER, &object, 0, data);
|
wl_closure_invoke(closure, WL_CLOSURE_INVOKE_SERVER, &object, 0, data);
|
||||||
wl_closure_destroy(closure);
|
wl_closure_destroy(closure);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue