[gobject-introspection] g-ir-inspect: remove last usage of g_autoptr()



commit 86c6ff075752a8e6d3fb4d2a85f19bf46a77a349
Author: Igor Gnatenko <ignatenko src gnome org>
Date:   Sun Aug 7 09:58:57 2016 +0200

    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

 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 7223af1..2e68824 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]