core: fix assertion failure when blur context failed to initialize
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@ -740,6 +740,8 @@ static bool initialize_backend(session_t *ps) {
|
|||||||
|
|
||||||
if (!initialize_blur(ps)) {
|
if (!initialize_blur(ps)) {
|
||||||
log_fatal("Failed to prepare for background blur, aborting...");
|
log_fatal("Failed to prepare for background blur, aborting...");
|
||||||
|
ps->backend_data->ops->deinit(ps->backend_data);
|
||||||
|
ps->backend_data = NULL;
|
||||||
quit_compton(ps);
|
quit_compton(ps);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user