fix memory leak
This commit is contained in:
parent
3b078b83a0
commit
85f8a2691a
|
@ -990,12 +990,12 @@ gboolean button_press_cb(VteTerminal *vte, GdkEventButton *event, const config_i
|
||||||
|
|
||||||
if (event->button == 1) {
|
if (event->button == 1) {
|
||||||
launch_browser(info->browser, match);
|
launch_browser(info->browser, match);
|
||||||
g_free(match);
|
|
||||||
} else if(event->button == 3) {
|
} else if(event->button == 3) {
|
||||||
GtkClipboard *clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD);
|
GtkClipboard *clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD);
|
||||||
gtk_clipboard_set_text(clipboard, match, -1);
|
gtk_clipboard_set_text(clipboard, match, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_free(match);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue