Commit 9aaaf96a authored by Leandro Ribeiro's avatar Leandro Ribeiro Committed by Pekka Paalanen

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: default avatarLeandro Ribeiro <leandrohr@riseup.net>
parent 97d2d699
......@@ -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--)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment