1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05: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); handle_entry_redirect(str);
} }
if (add_history != NULL) if (add_history != NULL) {
command_history_add(active_win, add_history, FALSE); command_history_add(active_win, add_history, FALSE);
g_free(add_history);
}
gui_entry_set_text(active_entry, ""); gui_entry_set_text(active_entry, "");
command_history_clear_pos(active_win); command_history_clear_pos(active_win);