From 7ec5bf6b10d2a7e1d9cdfdfeed44ac6db8bdcc99 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 29 Apr 2021 00:07:31 +0200 Subject: backend: introduce wlr_backend_finish This new functions cleans up the common backend state. While this currently only emits the destroy signal, this will also clean up the renderer and allocator in upcoming patches. --- backend/multi/backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/multi/backend.c') diff --git a/backend/multi/backend.c b/backend/multi/backend.c index e9ed74ec..7c74959e 100644 --- a/backend/multi/backend.c +++ b/backend/multi/backend.c @@ -58,7 +58,7 @@ static void multi_backend_destroy(struct wlr_backend *wlr_backend) { } // Destroy this backend only after removing all sub-backends - wlr_signal_emit_safe(&wlr_backend->events.destroy, backend); + wlr_backend_finish(wlr_backend); free(backend); } -- cgit v1.2.3