diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-11-08 17:31:18 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-01-02 13:54:57 +0400 |
commit | f908475f2f327ffe3508ba5ddfa5c53ad656958d (patch) | |
tree | adb9e24a788bf17c3cb33363d428b423f7524e59 /include/ui/qemu-pixman.h | |
parent | 46e5841cd2d8ffbaaa95ee7a1358e9650f9a1b93 (diff) | |
download | qemu-f908475f2f327ffe3508ba5ddfa5c53ad656958d.zip qemu-f908475f2f327ffe3508ba5ddfa5c53ad656958d.tar.gz qemu-f908475f2f327ffe3508ba5ddfa5c53ad656958d.tar.bz2 |
ui: add pixman image g_autoptr support
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'include/ui/qemu-pixman.h')
-rw-r--r-- | include/ui/qemu-pixman.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ui/qemu-pixman.h b/include/ui/qemu-pixman.h index 0668109..3b7cf70 100644 --- a/include/ui/qemu-pixman.h +++ b/include/ui/qemu-pixman.h @@ -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 */ |