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
This commit is contained in:
Igor Gnatenko 2016-08-07 09:58:57 +02:00 committed by Philip Withnall
parent 77e08288a5
commit 68162605ba

View File

@ -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)