mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +02:00
Merge pull request #1124 from ailin-nemui/extended-join
fix crash in join due to incorrect free
This commit is contained in:
commit
96562e460b
1 changed files with 5 additions and 2 deletions
|
|
@ -54,8 +54,10 @@ static void event_join(IRC_SERVER_REC *server, const char *data,
|
||||||
|
|
||||||
/* find channel */
|
/* find channel */
|
||||||
chanrec = irc_channel_find(server, channel);
|
chanrec = irc_channel_find(server, channel);
|
||||||
g_free(params);
|
if (chanrec == NULL) {
|
||||||
if (chanrec == NULL) return;
|
g_free(params);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* check that the nick isn't already in nicklist. seems to happen
|
/* check that the nick isn't already in nicklist. seems to happen
|
||||||
sometimes (server desyncs or something?) */
|
sometimes (server desyncs or something?) */
|
||||||
|
|
@ -103,6 +105,7 @@ static void event_join(IRC_SERVER_REC *server, const char *data,
|
||||||
}
|
}
|
||||||
|
|
||||||
chanrec->massjoins++;
|
chanrec->massjoins++;
|
||||||
|
g_free(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void event_chghost(IRC_SERVER_REC *server, const char *data,
|
static void event_chghost(IRC_SERVER_REC *server, const char *data,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue