From 90d1685188c79c96f88267416370338cc04a69a4 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 11 Jun 2012 14:32:44 -0400 Subject: [PATCH] free old browser_cmd[0] --- termite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/termite.c b/termite.c index 6d38cb0..a72f66e 100644 --- a/termite.c +++ b/termite.c @@ -26,7 +26,7 @@ typedef struct search_panel_info { enum overlay_mode mode; } search_panel_info; -static gchar *browser_cmd[3] = { NULL }; +static gchar *browser_cmd[3] = {NULL}; static void launch_browser(char *url); @@ -329,6 +329,7 @@ static void load_config(GtkWindow *window, VteTerminal *vte, bool first_run, *clickable_url = cfgbool; } + g_free(browser_cmd[0]); if (get_config_string(config, "options", "browser", &cfgstr)) { browser_cmd[0] = cfgstr; } else {