mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 18:40:03 +01:00
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:
parent
77e08288a5
commit
68162605ba
@ -77,7 +77,7 @@ main (gint argc,
|
|||||||
{ NULL },
|
{ 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);
|
g_option_context_add_main_entries (context, options, NULL);
|
||||||
if (!g_option_context_parse (context, &argc, &argv, &error))
|
if (!g_option_context_parse (context, &argc, &argv, &error))
|
||||||
{
|
{
|
||||||
@ -122,6 +122,7 @@ main (gint argc,
|
|||||||
print_typelibs (namespace);
|
print_typelibs (namespace);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
g_option_context_free (context);
|
||||||
if (error)
|
if (error)
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
if (typelib)
|
if (typelib)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user