summaryrefslogtreecommitdiff
path: root/src/fe-common/irc
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2007-04-29 12:26:02 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-04-29 12:26:02 +0000
commitf866799bb0acc96bdfb5e4f08da9aa9efe16c4f2 (patch)
tree72e4b9ccc4f2a040741d0f63093d40c1f7433f21 /src/fe-common/irc
parent983ee1db888e8f478990ac900ce01cfefe30c890 (diff)
downloadirssi-f866799bb0acc96bdfb5e4f08da9aa9efe16c4f2.zip
Use dynamic storage for return value of channel_get_nickmode.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4471 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r--src/fe-common/irc/fe-irc-messages.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fe-common/irc/fe-irc-messages.c b/src/fe-common/irc/fe-irc-messages.c
index 47922d4e..5c3a95b3 100644
--- a/src/fe-common/irc/fe-irc-messages.c
+++ b/src/fe-common/irc/fe-irc-messages.c
@@ -72,6 +72,7 @@ static void sig_message_own_public(SERVER_REC *server, const char *msg,
MSGLEVEL_NO_ACT,
TXT_OWN_MSG_CHANNEL,
server->nick, oldtarget, recoded, nickmode);
+ g_free(nickmode);
g_free(recoded);
signal_stop();
}
@@ -93,6 +94,7 @@ static void sig_message_irc_op_public(SERVER_REC *server, const char *msg,
MSGLEVEL_PUBLIC,
TXT_PUBMSG_CHANNEL,
nick, optarget, msg, nickmode);
+ g_free(nickmode);
g_free(optarget);
}
@@ -112,6 +114,7 @@ static void sig_message_own_wall(SERVER_REC *server, const char *msg,
MSGLEVEL_NO_ACT,
TXT_OWN_MSG_CHANNEL,
server->nick, optarget, recoded, nickmode);
+ g_free(nickmode);
g_free(recoded);
g_free(optarget);
}