mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
new backends: don't destroy blur context when there's none
Fixes #190 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
76e574dc94
commit
863e2c82ec
1 changed files with 5 additions and 3 deletions
|
@ -666,9 +666,11 @@ static void destroy_backend(session_t *ps) {
|
|||
|
||||
if (ps->backend_data) {
|
||||
// deinit backend
|
||||
ps->backend_data->ops->destroy_blur_context(ps->backend_data,
|
||||
ps->backend_blur_context);
|
||||
ps->backend_blur_context = NULL;
|
||||
if (ps->backend_blur_context) {
|
||||
ps->backend_data->ops->destroy_blur_context(
|
||||
ps->backend_data, ps->backend_blur_context);
|
||||
ps->backend_blur_context = NULL;
|
||||
}
|
||||
ps->backend_data->ops->deinit(ps->backend_data);
|
||||
ps->backend_data = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue