summaryrefslogtreecommitdiff
path: root/tools/g-ir-inspect.c
diff options
context:
space:
mode:
authorIgor Gnatenko <ignatenko@src.gnome.org>2016-08-07 09:58:57 +0200
committerIgor Gnatenko <ignatenko@src.gnome.org>2016-08-07 10:00:18 +0200
commit86c6ff075752a8e6d3fb4d2a85f19bf46a77a349 (patch)
tree7214588f865e525f2c49a2935a2fef71adfb95a0 /tools/g-ir-inspect.c
parente0775d394aec4e2125b3642141c3b2f2c75777cc (diff)
downloadgobject-introspection-86c6ff075752a8e6d3fb4d2a85f19bf46a77a349.tar.gz
g-ir-inspect: remove last usage of g_autoptr()
Signed-off-by: Igor Gnatenko <ignatenko@src.gnome.org> https://bugzilla.gnome.org/show_bug.cgi?id=769600
Diffstat (limited to 'tools/g-ir-inspect.c')
-rw-r--r--tools/g-ir-inspect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/g-ir-inspect.c b/tools/g-ir-inspect.c
index 7223af1f..2e68824b 100644
--- a/tools/g-ir-inspect.c
+++ b/tools/g-ir-inspect.c
@@ -77,7 +77,7 @@ main (gint argc,
{ NULL },
};
- g_autoptr(GOptionContext) context = g_option_context_new ("- Inspect GI typelib");
+ GOptionContext *context = g_option_context_new ("- Inspect GI typelib");
g_option_context_add_main_entries (context, options, NULL);
if (!g_option_context_parse (context, &argc, &argv, &error))
{
@@ -122,6 +122,7 @@ main (gint argc,
print_typelibs (namespace);
out:
+ g_option_context_free (context);
if (error)
g_error_free (error);
if (typelib)