From 4418ab7fa96ae45d330697b697376ae121c09b0b Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 7 Jun 2017 15:41:17 +0100 Subject: [PATCH] lib/fetcher: Add cleanup function for OstreeFetcher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is only used internally (the header is not public), so it doesn’t have to go in ostree-autocleanups.h. It will be used in some following commits. Signed-off-by: Philip Withnall Closes: #911 Approved by: cgwalters --- src/libostree/ostree-fetcher.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libostree/ostree-fetcher.h b/src/libostree/ostree-fetcher.h index 16cf3d7d..8ec5f209 100644 --- a/src/libostree/ostree-fetcher.h +++ b/src/libostree/ostree-fetcher.h @@ -46,6 +46,8 @@ struct OstreeFetcherClass GObjectClass parent_class; }; +G_DEFINE_AUTOPTR_CLEANUP_FUNC(OstreeFetcher, g_object_unref) + typedef enum { OSTREE_FETCHER_FLAGS_NONE = 0, OSTREE_FETCHER_FLAGS_TLS_PERMISSIVE = (1 << 0),