summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-14 14:14:54 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-14 14:14:54 +0000
commit53d5c92cf494866296ae8082804dddcdef656797 (patch)
treefb11d63803059b1069983566a5d8155bfc16af96 /src/fe-text
parent2752599e7a806f028a5ba572a8678d1801b93fbb (diff)
downloadirssi-53d5c92cf494866296ae8082804dddcdef656797.zip
Fixed some memory leaks.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1837 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/gui-readline.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index 6bc11138..524c6a55 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -497,13 +497,16 @@ void gui_readline_init(void)
static char changekeys[] = "1234567890qwertyuio";
char *key, data[MAX_INT_STRLEN];
int n;
+ GIOChannel *stdin_channel;
cutbuffer = NULL;
redir = NULL;
idle_time = time(NULL);
- readtag = g_input_add_full(g_io_channel_unix_new(0),
+ stdin_channel = g_io_channel_unix_new(0);
+ readtag = g_input_add_full(stdin_channel,
G_PRIORITY_HIGH, G_INPUT_READ,
(GInputFunction) readline, NULL);
+ g_io_channel_unref(stdin_channel);
settings_add_str("history", "scroll_page_count", "/2");