fix memory leak

This commit is contained in:
Simon Gomizelj 2014-03-08 18:24:48 -05:00
parent 3b078b83a0
commit 85f8a2691a
1 changed files with 1 additions and 1 deletions

View File

@ -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;