Free option context after use
authorMatthias Clasen <mclasen@redhat.com>
Sat, 19 Feb 2011 14:18:17 +0000 (09:18 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 19 Feb 2011 14:18:17 +0000 (09:18 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=642619

atk-adaptor/bridge.c

index 608b353..4248e1c 100644 (file)
@@ -699,6 +699,7 @@ adaptor_init (gint * argc, gchar ** argv[])
   g_option_context_set_ignore_unknown_options (opt, TRUE);
   if (!g_option_context_parse (opt, argc, argv, &err))
     g_warning ("AT-SPI Option parsing failed: %s\n", err->message);
+  g_option_context_free (opt);
 
   /* Allocate global data and do ATK initializations */
   spi_global_app_data = g_new0 (SpiBridge, 1);