From 85f8a2691ac361101cc1c73ef0a7a5901c38dd46 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Sat, 8 Mar 2014 18:24:48 -0500 Subject: [PATCH] fix memory leak --- termite.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termite.cc b/termite.cc index 666d797..b41a876 100644 --- a/termite.cc +++ b/termite.cc @@ -990,12 +990,12 @@ gboolean button_press_cb(VteTerminal *vte, GdkEventButton *event, const config_i if (event->button == 1) { launch_browser(info->browser, match); - g_free(match); } else if(event->button == 3) { GtkClipboard *clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); gtk_clipboard_set_text(clipboard, match, -1); } + g_free(match); return TRUE; } return FALSE;