Skip to content
Commit ffe08c43 authored by Leandro Ribeiro's avatar Leandro Ribeiro Committed by Pekka Paalanen
Browse files

libweston: create/destroy color profile id generator in a safe point



Currently we create the color profile id generator in
weston_compositor_backends_loaded() and destroy it in
weston_compositor_shutdown().

If something goes wrong and Weston does not start properly, we end up
calling weston_compositor_shutdown() for a struct weston_compositor
whose color profile id generator is NULL, crashing.

This fixes that, creating/destroying the id generator in
weston_compositor_create()/destroy().

Signed-off-by: default avatarLeandro Ribeiro <leandro.ribeiro@collabora.com>
parent 042d02f4
Loading
Loading
Loading
Pipeline #1111018 passed with stages
in 6 minutes and 26 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment