From b929b620aebbc241caa965472f4fe351223b7a35 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 31 Jul 2017 12:16:59 -0400 Subject: tree-wide: Use g_autoptr(Ostree*) Part of cleaning up our usage of libglnx; we want to use what's in GLib where we can. Had to change a few .c files to `#include ostree.h` early on to pick up autoptrs for the core types. Closes: #1040 Approved by: jlebon --- src/ostree/ot-builtin-refs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ostree/ot-builtin-refs.c') diff --git a/src/ostree/ot-builtin-refs.c b/src/ostree/ot-builtin-refs.c index 0f850069..9e13a048 100644 --- a/src/ostree/ot-builtin-refs.c +++ b/src/ostree/ot-builtin-refs.c @@ -260,7 +260,7 @@ ostree_builtin_refs (int argc, char **argv, GCancellable *cancellable, GError ** { gboolean ret = FALSE; g_autoptr(GOptionContext) context = NULL; - glnx_unref_object OstreeRepo *repo = NULL; + g_autoptr(OstreeRepo) repo = NULL; int i; context = g_option_context_new ("[PREFIX] - List refs"); -- cgit v1.2.1