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>
dev
Leandro Ribeiro 5 years ago committed by Pekka Paalanen
parent 97d2d69909
commit 9aaaf96a6a
  1. 2
      compositor/main.c

@ -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…
Cancel
Save