From 9b419ce37dddb5ecbe82984bfa1198a132fc2f98 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 4 Aug 2019 17:55:39 +0100 Subject: [PATCH] core: fix assertion failure when blur context failed to initialize Signed-off-by: Yuxuan Shui --- src/compton.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compton.c b/src/compton.c index 63d951e..730a6c9 100644 --- a/src/compton.c +++ b/src/compton.c @@ -740,6 +740,8 @@ static bool initialize_backend(session_t *ps) { if (!initialize_blur(ps)) { log_fatal("Failed to prepare for background blur, aborting..."); + ps->backend_data->ops->deinit(ps->backend_data); + ps->backend_data = NULL; quit_compton(ps); return false; }