Mercurial > pidgin.yaz
comparison libpurple/protocols/irc/msgs.c @ 21599:b8f5e76bbfe9
another patch from my coworker Andrew Gaul that plugged a leak, I fixed it
to use g_strfreev instead of just free.
He told me he's now running pidgin full time under valgrind
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Tue, 20 Nov 2007 18:54:55 +0000 |
parents | ba41f2a60253 |
children | 6b42bed44324 |
comparison
equal
deleted
inserted
replaced
21598:83ab13f4eee7 | 21599:b8f5e76bbfe9 |
---|---|
136 if (!strncmp(features[i], "PREFIX=", 7)) { | 136 if (!strncmp(features[i], "PREFIX=", 7)) { |
137 if ((val = strchr(features[i] + 7, ')')) != NULL) | 137 if ((val = strchr(features[i] + 7, ')')) != NULL) |
138 irc->mode_chars = g_strdup(val + 1); | 138 irc->mode_chars = g_strdup(val + 1); |
139 } | 139 } |
140 } | 140 } |
141 | |
142 g_strfreev(features); | |
141 } | 143 } |
142 | 144 |
143 void irc_msg_luser(struct irc_conn *irc, const char *name, const char *from, char **args) | 145 void irc_msg_luser(struct irc_conn *irc, const char *name, const char *from, char **args) |
144 { | 146 { |
145 if (!args || !args[0]) | 147 if (!args || !args[0]) |