summaryrefslogtreecommitdiff
path: root/src/ostree/ot-remote-builtin-show-url.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-03-23 16:49:58 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2017-03-28 20:19:15 +0000
commit97961ed2cec379c0bbee3823503bb8fd5f67257b (patch)
treef16c28dd6fb3f9f96d9d1aa09cd6019cd9826e65 /src/ostree/ot-remote-builtin-show-url.c
parentd994aee0a11701068c831b7768c11a00a361f428 (diff)
downloadostree-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-show-url.c')
-rw-r--r--src/ostree/ot-remote-builtin-show-url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-remote-builtin-show-url.c b/src/ostree/ot-remote-builtin-show-url.c
index 401dfb0b..c1666558 100644
--- a/src/ostree/ot-remote-builtin-show-url.c
+++ b/src/ostree/ot-remote-builtin-show-url.c
@@ -33,7 +33,7 @@ gboolean
ot_remote_builtin_show_url (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 *remote_url = NULL;
gboolean ret = FALSE;