[at-spi2-atk] Free option context after use



commit 42b6147f8cc2e0e097a76bf6d2671df8f4e78ada
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 19 09:18:17 2011 -0500

    Free option context after use
    
    https://bugzilla.gnome.org/show_bug.cgi?id=642619

 atk-adaptor/bridge.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
index 608b353..4248e1c 100644
--- a/atk-adaptor/bridge.c
+++ b/atk-adaptor/bridge.c
@@ -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);



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