From f908475f2f327ffe3508ba5ddfa5c53ad656958d Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Fri, 8 Nov 2019 17:31:18 +0400 Subject: ui: add pixman image g_autoptr support Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé --- include/ui/qemu-pixman.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/ui/qemu-pixman.h b/include/ui/qemu-pixman.h index 0668109305..3b7cf70157 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 */ -- cgit v1.2.3-55-g7522