mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 17:09:41 +02:00
compositor: destroy log context only after the destruction of subscribers
Before commit "weston-log: destroy subscriptions with destruction of subscribers", we had to destroy subscribers before the log context. Currently there's no required order, both are valid. But since we've created log context before the subscribers, we can destroy it after them. This is a style change and also a prove that now this order is valid as well. Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net>
This commit is contained in:
parent
97d2d69909
commit
9aaaf96a6a
1 changed files with 1 additions and 1 deletions
|
|
@ -3380,9 +3380,9 @@ out:
|
|||
protocol_scope = NULL;
|
||||
weston_log_scope_destroy(log_scope);
|
||||
log_scope = NULL;
|
||||
weston_log_ctx_destroy(log_ctx);
|
||||
weston_log_subscriber_destroy(logger);
|
||||
weston_log_subscriber_destroy(flight_rec);
|
||||
weston_log_ctx_destroy(log_ctx);
|
||||
|
||||
out_signals:
|
||||
for (i = ARRAY_LENGTH(signals) - 1; i >= 0; i--)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue