forked from PsychoticNinja/irssi
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:
parent
54f5beb8f5
commit
3236daa97a
@ -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);
|
signal_emit("complete erase", 3, window, word, linestart);
|
||||||
|
|
||||||
/* jump to next completion */
|
/* jump to next completion */
|
||||||
word = NULL;
|
|
||||||
linestart = NULL;
|
|
||||||
startpos = old_startpos;
|
startpos = old_startpos;
|
||||||
wordlen = old_wordlen;
|
wordlen = old_wordlen;
|
||||||
}
|
}
|
||||||
|
@ -257,7 +257,7 @@ static void sig_message_own_public(SERVER_REC *server, const char *msg,
|
|||||||
{
|
{
|
||||||
WINDOW_REC *window;
|
WINDOW_REC *window;
|
||||||
CHANNEL_REC *channel;
|
CHANNEL_REC *channel;
|
||||||
const char *nickmode;
|
char *nickmode;
|
||||||
char *freemsg = NULL;
|
char *freemsg = NULL;
|
||||||
int print_channel;
|
int print_channel;
|
||||||
channel = channel_find(server, target);
|
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);
|
TXT_OWN_MSG_CHANNEL, server->nick, target, msg, nickmode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_free_not_null(nickmode);
|
||||||
g_free_not_null(freemsg);
|
g_free_not_null(freemsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -228,6 +228,7 @@ static int expand_combo(const char *start, const char *end, GSList **out)
|
|||||||
if (list->next == NULL) {
|
if (list->next == NULL) {
|
||||||
/* only one way to generate the combo, good */
|
/* only one way to generate the combo, good */
|
||||||
rec = list->data;
|
rec = list->data;
|
||||||
|
g_slist_free(list);
|
||||||
return expand_key(rec->key, out);
|
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;
|
rec = list->data;
|
||||||
|
g_slist_free(list);
|
||||||
if (!expand_key(rec->key, out)) {
|
if (!expand_key(rec->key, out)) {
|
||||||
/* illegal key combo, remove from list */
|
/* illegal key combo, remove from list */
|
||||||
expand_out_free(*out);
|
expand_out_free(*out);
|
||||||
|
@ -86,8 +86,7 @@ void irc_send_cmd_full(IRC_SERVER_REC *server, const char *cmd,
|
|||||||
|
|
||||||
if (send_now) {
|
if (send_now) {
|
||||||
irc_server_send_data(server, cmd, len);
|
irc_server_send_data(server, cmd, len);
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
|
|
||||||
/* add to queue */
|
/* add to queue */
|
||||||
if (immediate) {
|
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->cmdqueue = g_slist_append(server->cmdqueue,
|
||||||
server->redirect_next);
|
server->redirect_next);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
server->redirect_next = NULL;
|
server->redirect_next = NULL;
|
||||||
g_free(params);
|
g_free(params);
|
||||||
g_free(recoded_line);
|
g_free(recoded_line);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user