summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-14 13:45:27 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-14 13:45:27 +0000
commit2752599e7a806f028a5ba572a8678d1801b93fbb (patch)
tree9b7d7decdd6f2fea1d11c041efda769153e58a4a /src/fe-text
parent44270041c241d7fd7b1967d537eaf9345b3ca45d (diff)
downloadirssi-2752599e7a806f028a5ba572a8678d1801b93fbb.zip
fixed a minor memleak
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1836 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/gui-readline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index 6f9822e4..6bc11138 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -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);