Fixes NB#130686, fixed three memory leaks
[modest] / src / modest-main.c
index 796560e..721b0bb 100644 (file)
@@ -152,9 +152,10 @@ main (int argc, char *argv[])
        g_option_context_add_group (context, gtk_get_option_group (TRUE));
        if (!g_option_context_parse (context, &argc, &argv, &error)) {
                g_print ("option parsing failed: %s\n", error->message);
+               g_option_context_free (context);
                exit (1);
        }
-
+       g_option_context_free (context);
 
        show_ui_without_top_application_method = show_ui;