Browse Source

ui/dbus: fix pixman cleanup

Moved pixman_region32_fini() outside the WIN32 block so it's called on
all platforms.

Fixes: commit 7007e98c ("ui/dbus: implement damage regions for GL")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <20260122113144.2046899-5-marcandre.lureau@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
staging^2
Marc-André Lureau 2 months ago
committed by Philippe Mathieu-Daudé
parent
commit
639adeabb3
  1. 6
      ui/dbus-listener.c

6
ui/dbus-listener.c

@ -964,15 +964,15 @@ dbus_display_listener_dispose(GObject *object)
#ifdef WIN32
g_clear_object(&ddl->d3d11_proxy);
g_clear_pointer(&ddl->peer_process, CloseHandle);
#ifdef CONFIG_PIXMAN
pixman_region32_fini(&ddl->gl_damage);
#endif
#ifdef CONFIG_OPENGL
egl_fb_destroy(&ddl->fb);
#endif
#else /* !WIN32 */
g_clear_object(&ddl->scanout_dmabuf_v2_proxy);
#endif
#ifdef CONFIG_PIXMAN
pixman_region32_fini(&ddl->gl_damage);
#endif
G_OBJECT_CLASS(dbus_display_listener_parent_class)->dispose(object);
}

Loading…
Cancel
Save