Skip to content

shm: add safety assertions

Simon Ser requested to merge emersion/wayland:shm-buffer-ref-assert into main

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.

Signed-off-by: Simon Ser contact@emersion.fr

Merge request reports