From 33fba3c67e68a6295fe9a2b633e659ca489fe839 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 22 Jan 2016 10:55:01 +0100 Subject: [PATCH] xdg-app-utils: Add autocleanup for GZlib* --- common/xdg-app-utils.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/xdg-app-utils.h b/common/xdg-app-utils.h index 3ba9563f..53e5b3e0 100644 --- a/common/xdg-app-utils.h +++ b/common/xdg-app-utils.h @@ -238,6 +238,12 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupURI, soup_uri_free) G_DEFINE_AUTOPTR_CLEANUP_FUNC(XdgAppSessionHelper, g_object_unref) + +#if !GLIB_CHECK_VERSION(2, 43, 4) +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GZlibCompressor, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GZlibDecompressor, g_object_unref) +#endif + typedef struct XdgAppXml XdgAppXml; struct XdgAppXml {