6da5b8a5a5
When we are destroying the color manager, the components referencing color profiles should have already been destroyed. We have an assert in cmnoop_destroy() to make sure that the stock profile has refcount equal to 1. But we currently have an issue in Weston. While shutting down with client surfaces alive, we may leak them. So we try to destroy the color manager with surfaces still alive, and they may be referencing color profiles. We already have a workaround for this in our LittleCMS color plugin, but we've missed that in color-noop. This fixes that, so now we don't hit the assert anymore. As we are already dealing with asserts in color-noop, I took the liberty to replace the last usage of assert with our own wrapper in this file. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com> |
||
---|---|---|
.. | ||
cairo-util.c | ||
cairo-util.h | ||
config-parser.c | ||
fd-util.h | ||
file-util.c | ||
file-util.h | ||
frame.c | ||
hash.c | ||
hash.h | ||
helpers.h | ||
image-loader.c | ||
image-loader.h | ||
matrix.c | ||
meson.build | ||
option-parser.c | ||
os-compatibility.c | ||
os-compatibility.h | ||
platform.h | ||
process-util.c | ||
process-util.h | ||
string-helpers.h | ||
timespec-util.h | ||
weston-assert.h | ||
weston-drm-fourcc.h | ||
weston-egl-ext.h | ||
xalloc.h | ||
xcb-xwayland.c | ||
xcb-xwayland.h |