core: root_image freeing shouldn't be in a loop
This commit is contained in:
parent
80d77b4ee8
commit
159a45b9e9
|
@ -660,15 +660,15 @@ static void destroy_backend(session_t *ps) {
|
||||||
assert(!w->win_image);
|
assert(!w->win_image);
|
||||||
assert(!w->shadow_image);
|
assert(!w->shadow_image);
|
||||||
}
|
}
|
||||||
if (ps->root_image) {
|
|
||||||
ps->backend_data->ops->release_image(ps->backend_data,
|
|
||||||
ps->root_image);
|
|
||||||
ps->root_image = NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
free_paint(ps, &w->paint);
|
free_paint(ps, &w->paint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ps->backend_data && ps->root_image) {
|
||||||
|
ps->backend_data->ops->release_image(ps->backend_data, ps->root_image);
|
||||||
|
ps->root_image = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (ps->backend_data) {
|
if (ps->backend_data) {
|
||||||
// deinit backend
|
// deinit backend
|
||||||
if (ps->backend_blur_context) {
|
if (ps->backend_blur_context) {
|
||||||
|
|
Loading…
Reference in New Issue