diff options
| author | Simon Ser <contact@emersion.fr> | 2021-06-02 16:35:30 +0200 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2021-06-29 11:17:44 +0200 |
| commit | 817fdb9009cd085a6e8b00a5fab207050cae5b1a (patch) | |
| tree | 53c95db1e88c7f125d5f89bff503d05a679e56db /protocol | |
| parent | connection: Handle non-nullable strings in wl_connection_demarshal (diff) | |
| download | wayland-817fdb9009cd085a6e8b00a5fab207050cae5b1a.tar wayland-817fdb9009cd085a6e8b00a5fab207050cae5b1a.tar.gz wayland-817fdb9009cd085a6e8b00a5fab207050cae5b1a.tar.bz2 wayland-817fdb9009cd085a6e8b00a5fab207050cae5b1a.tar.lz wayland-817fdb9009cd085a6e8b00a5fab207050cae5b1a.tar.xz wayland-817fdb9009cd085a6e8b00a5fab207050cae5b1a.tar.zst wayland-817fdb9009cd085a6e8b00a5fab207050cae5b1a.zip | |
shm: add safety assertions
Catch any API mis-use with an assert. This should abort when the
user calls unreferences the pool more times than it's referenced.
Also change the refcount check to explicitly check for positive
counts. That makes the condition more readable.
Signed-off-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'protocol')
0 files changed, 0 insertions, 0 deletions
