diff options
-rw-r--r-- | tools/g-ir-inspect.c | 3 |
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) |