1
0
mirror of https://github.com/irssi/irssi.git synced 2024-08-04 03:34:18 -04:00

fixed a minor memleak

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1836 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-14 13:45:27 +00:00 committed by cras
parent 44270041c2
commit 2752599e7a

View File

@ -165,8 +165,10 @@ static void key_send_line(void)
handle_entry_redirect(str);
}
if (add_history != NULL)
if (add_history != NULL) {
command_history_add(active_win, add_history, FALSE);
g_free(add_history);
}
gui_entry_set_text(active_entry, "");
command_history_clear_pos(active_win);