1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04: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:
Timo Sirainen 2000-07-02 16:24:28 +00:00 committed by cras
parent bb76eec0ff
commit c451c94c68

View File

@ -66,8 +66,9 @@ static void event_join(const char *data, IRC_SERVER_REC *server, const char *nic
chanrec->last_massjoins = 0;
}
if (nickrec->realname == NULL) {
/* Check if user is already in some other channel,
get the realname from there */
get the realname and other stuff from there */
nicks = nicklist_get_same(server, nick);
for (tmp = nicks; tmp != NULL; tmp = tmp->next->next) {
NICK_REC *rec = tmp->next->data;
@ -76,9 +77,11 @@ static void event_join(const char *data, IRC_SERVER_REC *server, const char *nic
nickrec->last_check = rec->last_check;
nickrec->realname = g_strdup(rec->realname);
nickrec->gone = rec->gone;
break;
}
}
g_slist_free(nicks);
}
chanrec->massjoins++;
}