[gjs] console: plug a memleak



commit 7cde1715eead0b5f928c4aa43b6236d4d33e539d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Jan 21 11:46:54 2013 -0500

    console: plug a memleak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692214

 gjs/console.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gjs/console.c b/gjs/console.c
index 7da289d..9e808c4 100644
--- a/gjs/console.c
+++ b/gjs/console.c
@@ -61,6 +61,8 @@ main(int argc, char **argv)
     if (!g_option_context_parse(context, &argc, &argv, &error))
         g_error("option parsing failed: %s", error->message);
 
+    g_option_context_free (context);
+
     setlocale(LC_ALL, "");
 
     command_line = g_strjoinv(" ", argv);



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