compositor: Destroy the compositor before the log scope
Destroying the compositor after destroying the log scope will not print out the messages in the tear down/clean-up phase of the compositor, so add a new tear_down function which allows keeping a valid reference to the compositor. This way we can destroy the compositor before destroying the scope and keep the debug messages. While at it remove the log context destroy part from the clean-up of the compositor and make it stand on its own. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
@@ -1760,8 +1760,11 @@ weston_buffer_from_resource(struct wl_resource *resource);
|
||||
void
|
||||
weston_compositor_get_time(struct timespec *time);
|
||||
|
||||
void
|
||||
weston_compositor_tear_down(struct weston_compositor *ec);
|
||||
void
|
||||
weston_compositor_destroy(struct weston_compositor *ec);
|
||||
|
||||
struct weston_compositor *
|
||||
weston_compositor_create(struct wl_display *display,
|
||||
struct weston_log_context *log_ctx, void *user_data);
|
||||
|
||||
Reference in New Issue
Block a user