Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Commit

Permalink
fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
vodik committed Mar 8, 2014
1 parent 3b078b8 commit 85f8a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion termite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 85f8a26

Please sign in to comment.