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:
@@ -3,8 +3,9 @@ Compositor
|
||||
|
||||
:type:`weston_compositor` represents the core object of the library, which
|
||||
aggregates all the other objects and maintains their state. You can create it
|
||||
using :func:`weston_compositor_create`, while for destroying it and releasing all
|
||||
the resources associated with it, you should use :func:`weston_compositor_destroy`.
|
||||
using :func:`weston_compositor_create`, while for releasing all the resources
|
||||
associated with it, you should use :func:`weston_compositor_tear_down`,
|
||||
followed by :func:`weston_compositor_destroy` to destroy it.
|
||||
|
||||
Compositor API
|
||||
--------------
|
||||
|
||||
Reference in New Issue
Block a user