1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

Fixed some memory leaks.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1837 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-14 14:14:54 +00:00 committed by cras
parent 2752599e7a
commit 53d5c92cf4
5 changed files with 9 additions and 1 deletions

View File

@ -61,4 +61,6 @@ void args_execute(int argc, char *argv[])
g_array_free(iopt_tables, TRUE);
iopt_tables = NULL;
poptFreeContext(con);
}

View File

@ -42,6 +42,7 @@ static void net_disconnect_remove(NET_DISCONNECT_REC *rec)
disconnects = g_slist_remove(disconnects, rec);
g_source_remove(rec->tag);
net_disconnect(rec->handle);
g_free(rec);
}

View File

@ -102,6 +102,7 @@ static void nicklist_destroy(CHANNEL_REC *channel, NICK_REC *nick)
{
signal_emit("nicklist remove", 2, channel, nick);
MODULE_DATA_DEINIT(nick);
g_free(nick->nick);
g_free_not_null(nick->realname);
g_free_not_null(nick->host);

View File

@ -114,6 +114,7 @@ static char *server_create_tag(SERVER_CONNECT_REC *conn)
same server and you want to keep the same tags with
the servers (or it would cause problems when rejoining
/LAYOUT SAVEd channels). */
g_free(tag);
return g_strdup(conn->tag);
}

View File

@ -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");