mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue