picom: free root image properly

fixes #982
This commit is contained in:
Maxim Solovyov 2022-12-30 06:16:46 +03:00
parent 60ac2b64db
commit 91828be79d
1 changed files with 1 additions and 0 deletions

View File

@ -990,6 +990,7 @@ void root_damaged(session_t *ps) {
if (ps->backend_data) {
if (ps->root_image) {
ps->backend_data->ops->release_image(ps->backend_data, ps->root_image);
ps->root_image = NULL;
}
auto pixmap = x_get_root_back_pixmap(ps->c, ps->root, ps->atoms);
if (pixmap != XCB_NONE) {