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:
parent
2752599e7a
commit
53d5c92cf4
@ -61,4 +61,6 @@ void args_execute(int argc, char *argv[])
|
|||||||
|
|
||||||
g_array_free(iopt_tables, TRUE);
|
g_array_free(iopt_tables, TRUE);
|
||||||
iopt_tables = NULL;
|
iopt_tables = NULL;
|
||||||
|
|
||||||
|
poptFreeContext(con);
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,7 @@ static void net_disconnect_remove(NET_DISCONNECT_REC *rec)
|
|||||||
disconnects = g_slist_remove(disconnects, rec);
|
disconnects = g_slist_remove(disconnects, rec);
|
||||||
|
|
||||||
g_source_remove(rec->tag);
|
g_source_remove(rec->tag);
|
||||||
|
net_disconnect(rec->handle);
|
||||||
g_free(rec);
|
g_free(rec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,6 +102,7 @@ static void nicklist_destroy(CHANNEL_REC *channel, NICK_REC *nick)
|
|||||||
{
|
{
|
||||||
signal_emit("nicklist remove", 2, channel, nick);
|
signal_emit("nicklist remove", 2, channel, nick);
|
||||||
|
|
||||||
|
MODULE_DATA_DEINIT(nick);
|
||||||
g_free(nick->nick);
|
g_free(nick->nick);
|
||||||
g_free_not_null(nick->realname);
|
g_free_not_null(nick->realname);
|
||||||
g_free_not_null(nick->host);
|
g_free_not_null(nick->host);
|
||||||
|
@ -114,6 +114,7 @@ static char *server_create_tag(SERVER_CONNECT_REC *conn)
|
|||||||
same server and you want to keep the same tags with
|
same server and you want to keep the same tags with
|
||||||
the servers (or it would cause problems when rejoining
|
the servers (or it would cause problems when rejoining
|
||||||
/LAYOUT SAVEd channels). */
|
/LAYOUT SAVEd channels). */
|
||||||
|
g_free(tag);
|
||||||
return g_strdup(conn->tag);
|
return g_strdup(conn->tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -497,13 +497,16 @@ void gui_readline_init(void)
|
|||||||
static char changekeys[] = "1234567890qwertyuio";
|
static char changekeys[] = "1234567890qwertyuio";
|
||||||
char *key, data[MAX_INT_STRLEN];
|
char *key, data[MAX_INT_STRLEN];
|
||||||
int n;
|
int n;
|
||||||
|
GIOChannel *stdin_channel;
|
||||||
|
|
||||||
cutbuffer = NULL;
|
cutbuffer = NULL;
|
||||||
redir = NULL;
|
redir = NULL;
|
||||||
idle_time = time(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,
|
G_PRIORITY_HIGH, G_INPUT_READ,
|
||||||
(GInputFunction) readline, NULL);
|
(GInputFunction) readline, NULL);
|
||||||
|
g_io_channel_unref(stdin_channel);
|
||||||
|
|
||||||
settings_add_str("history", "scroll_page_count", "/2");
|
settings_add_str("history", "scroll_page_count", "/2");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user