xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jan 12 17:11:44 UTC 2024


 hw/xwayland/xwayland-window-buffers.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit cad42fcb0850e001c7ae37179c8b94ccc42c0306
Author: Michel Dänzer <mdaenzer at redhat.com>
Date:   Fri Jan 12 11:37:35 2024 +0100

    xwayland: Destroy old window pixmap in xwl_window_recycle_pixmap
    
    We were leaking it.
    
    Fixes: 6779ec5bf67a ("xwayland: Use window pixmap as a window buffer")

diff --git a/hw/xwayland/xwayland-window-buffers.c b/hw/xwayland/xwayland-window-buffers.c
index 658ec2199..599ad5370 100644
--- a/hw/xwayland/xwayland-window-buffers.c
+++ b/hw/xwayland/xwayland-window-buffers.c
@@ -324,6 +324,7 @@ xwl_window_recycle_pixmap(struct xwl_window *xwl_window)
                      window_pixmap->drawable.width,
                      window_pixmap->drawable.height);
     xwl_window_set_pixmap(xwl_window->window, new_window_pixmap);
+    screen->DestroyPixmap(window_pixmap);
 }
 
 PixmapPtr


More information about the xorg-commit mailing list