diff options
author | Colin Walters <walters@verbum.org> | 2017-03-23 16:49:58 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-03-28 20:19:15 +0000 |
commit | 97961ed2cec379c0bbee3823503bb8fd5f67257b (patch) | |
tree | f16c28dd6fb3f9f96d9d1aa09cd6019cd9826e65 /src/ostree/ot-remote-builtin-list-cookies.c | |
parent | d994aee0a11701068c831b7768c11a00a361f428 (diff) | |
download | ostree-97961ed2cec379c0bbee3823503bb8fd5f67257b.tar.gz |
build: Expose autocleanups unconditionally, start using them
I'd like to do this in rpm-ostree at least. Originally I was looking at porting
to `G_DECLARE_FINAL_TYPE` but eh, this is easier for now and won't bump our GLib
dependency which might matter for our embedded users.
For now I just did a few replacements in the `remote` command line. A full port
can come as we do other code cleanups.
This will actually break the flatpak build right now, but
that's easy to fix. And we concluded in e.g.
https://bugs.freedesktop.org/show_bug.cgi?id=95065#c5
it's a bug for downstream projects to do that.
Closes: #756
Approved by: jlebon
Diffstat (limited to 'src/ostree/ot-remote-builtin-list-cookies.c')
-rw-r--r-- | src/ostree/ot-remote-builtin-list-cookies.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-remote-builtin-list-cookies.c b/src/ostree/ot-remote-builtin-list-cookies.c index 1c3924af..83d75a57 100644 --- a/src/ostree/ot-remote-builtin-list-cookies.c +++ b/src/ostree/ot-remote-builtin-list-cookies.c @@ -36,7 +36,7 @@ gboolean ot_remote_builtin_list_cookies (int argc, char **argv, GCancellable *cancellable, GError **error) { g_autoptr(GOptionContext) context = NULL; - glnx_unref_object OstreeRepo *repo = NULL; + g_autoptr(OstreeRepo) repo = NULL; const char *remote_name; g_autofree char *jar_path = NULL; g_autofree char *cookie_file = NULL; |