]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
ui/dbus: fix pixman cleanup
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 22 Jan 2026 11:31:43 +0000 (15:31 +0400)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 9 Mar 2026 15:45:24 +0000 (16:45 +0100)
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>
ui/dbus-listener.c

index 46264839d86b601e2bdc49a3ea80c9afc0a09429..3e2b4adf41faa561eb471fdc837cc6d445c1e82e 100644 (file)
@@ -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);
 }