mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -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:
parent
44270041c2
commit
2752599e7a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user