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
|
@ -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 New Issue