Commit 0e9e50f9dd for qemu.org

commit 0e9e50f9dd3c06492b175a79eb3378da744b94a2
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date:   Tue Mar 3 17:36:06 2026 +0100

    ui/dbus-listener: Fix FBO leak in dbus_cursor_dmabuf

    cursor_fb is a local egl_fb that gets an FBO allocated via
    egl_fb_setup_for_tex but is never destroyed, leaking the
    framebuffer object on every cursor update.

    Add egl_fb_destroy() after the cursor data has been read.

    Fixes: commit 142ca628a7 ("ui: add a D-Bus display backend")
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>

diff --git a/ui/dbus-listener.c b/ui/dbus-listener.c
index 3e2b4adf41..fff7cf8327 100644
--- a/ui/dbus-listener.c
+++ b/ui/dbus-listener.c
@@ -660,6 +660,7 @@ static void dbus_cursor_dmabuf(DisplayChangeListener *dcl,
     egl_fb_setup_for_tex(&cursor_fb, width, height, texture, false);
     ds = qemu_create_displaysurface(width, height);
     egl_fb_read(ds, &cursor_fb);
+    egl_fb_destroy(&cursor_fb);

     v_data = g_variant_new_from_data(
         G_VARIANT_TYPE("ay"),