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>
#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);
}