core: fix assertion failure when blur context failed to initialize

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-08-04 17:55:39 +01:00
parent 8eb9d07fa8
commit 9b419ce37d
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}