mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 17:42:49 +02:00
Minor memleak fixed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@415 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
bb76eec0ff
commit
c451c94c68
1 changed files with 14 additions and 11 deletions
|
|
@ -66,19 +66,22 @@ static void event_join(const char *data, IRC_SERVER_REC *server, const char *nic
|
||||||
chanrec->last_massjoins = 0;
|
chanrec->last_massjoins = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if user is already in some other channel,
|
if (nickrec->realname == NULL) {
|
||||||
get the realname from there */
|
/* Check if user is already in some other channel,
|
||||||
nicks = nicklist_get_same(server, nick);
|
get the realname and other stuff from there */
|
||||||
for (tmp = nicks; tmp != NULL; tmp = tmp->next->next) {
|
nicks = nicklist_get_same(server, nick);
|
||||||
NICK_REC *rec = tmp->next->data;
|
for (tmp = nicks; tmp != NULL; tmp = tmp->next->next) {
|
||||||
|
NICK_REC *rec = tmp->next->data;
|
||||||
|
|
||||||
if (rec->realname != NULL) {
|
if (rec->realname != NULL) {
|
||||||
nickrec->last_check = rec->last_check;
|
nickrec->last_check = rec->last_check;
|
||||||
nickrec->realname = g_strdup(rec->realname);
|
nickrec->realname = g_strdup(rec->realname);
|
||||||
nickrec->gone = rec->gone;
|
nickrec->gone = rec->gone;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
g_slist_free(nicks);
|
||||||
}
|
}
|
||||||
g_slist_free(nicks);
|
|
||||||
|
|
||||||
chanrec->massjoins++;
|
chanrec->massjoins++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue