1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

Fix leaks.

git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4845 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-05-23 09:59:59 +00:00 committed by exg
parent 54f5beb8f5
commit 3236daa97a
4 changed files with 6 additions and 5 deletions

View File

@ -197,8 +197,6 @@ char *word_complete(WINDOW_REC *window, const char *line, int *pos, int erase, i
signal_emit("complete erase", 3, window, word, linestart);
/* jump to next completion */
word = NULL;
linestart = NULL;
startpos = old_startpos;
wordlen = old_wordlen;
}

View File

@ -257,7 +257,7 @@ static void sig_message_own_public(SERVER_REC *server, const char *msg,
{
WINDOW_REC *window;
CHANNEL_REC *channel;
const char *nickmode;
char *nickmode;
char *freemsg = NULL;
int print_channel;
channel = channel_find(server, target);
@ -287,6 +287,7 @@ static void sig_message_own_public(SERVER_REC *server, const char *msg,
TXT_OWN_MSG_CHANNEL, server->nick, target, msg, nickmode);
}
g_free_not_null(nickmode);
g_free_not_null(freemsg);
}

View File

@ -228,6 +228,7 @@ static int expand_combo(const char *start, const char *end, GSList **out)
if (list->next == NULL) {
/* only one way to generate the combo, good */
rec = list->data;
g_slist_free(list);
return expand_key(rec->key, out);
}
@ -252,6 +253,7 @@ static int expand_combo(const char *start, const char *end, GSList **out)
}
rec = list->data;
g_slist_free(list);
if (!expand_key(rec->key, out)) {
/* illegal key combo, remove from list */
expand_out_free(*out);

View File

@ -86,8 +86,7 @@ void irc_send_cmd_full(IRC_SERVER_REC *server, const char *cmd,
if (send_now) {
irc_server_send_data(server, cmd, len);
return;
}
} else {
/* add to queue */
if (immediate) {
@ -101,6 +100,7 @@ void irc_send_cmd_full(IRC_SERVER_REC *server, const char *cmd,
server->cmdqueue = g_slist_append(server->cmdqueue,
server->redirect_next);
}
}
server->redirect_next = NULL;
g_free(params);
g_free(recoded_line);