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>
Marc-André Lureau committed
Jan 22, 2026 at 15:31 UTC
639adeabb3a8db485a950840f81d0208656a06e2
1 file changed
+3
-3
ui/dbus-listener.c
+3
-3
@@ -964,15 +964,15 @@ dbus_display_listener_dispose(GObject *object)
964
#ifdef WIN32
965
g_clear_object(&ddl->d3d11_proxy);
966
g_clear_pointer(&ddl->peer_process, CloseHandle);
967
-#ifdef CONFIG_PIXMAN
968
- pixman_region32_fini(&ddl->gl_damage);
969
-#endif
967
#ifdef CONFIG_OPENGL
968
egl_fb_destroy(&ddl->fb);
969
#endif
970
#else /* !WIN32 */
971
g_clear_object(&ddl->scanout_dmabuf_v2_proxy);
972
#endif
973
+#ifdef CONFIG_PIXMAN
974
+ pixman_region32_fini(&ddl->gl_damage);
975
+#endif
976
977
G_OBJECT_CLASS(dbus_display_listener_parent_class)->dispose(object);
978
}