]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ui: add pixman image g_autoptr support
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 8 Nov 2019 13:31:18 +0000 (17:31 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 2 Jan 2020 09:54:57 +0000 (13:54 +0400)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
include/ui/qemu-pixman.h

index 0668109305894f32c4eeda899323346cd366d32f..3b7cf70157c1c425da266d7b4f0682b839a982e4 100644 (file)
@@ -90,4 +90,6 @@ void qemu_pixman_glyph_render(pixman_image_t *glyph,
                               pixman_color_t *bgcol,
                               int x, int y, int cw, int ch);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(pixman_image_t, qemu_pixman_image_unref)
+
 #endif /* QEMU_PIXMAN_H */