Fixed memory leaks when destroying a channel, when loading nonexisten scripts and in topics, patch by Toby Peterson

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3707 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Valentin Batz 2005-02-06 21:31:58 +00:00 committed by vb
commit 19e800cf23
3 changed files with 8 additions and 4 deletions

View file

@ -148,7 +148,8 @@ static void channel_change_topic(IRC_SERVER_REC *server, const char *channel,
g_free_not_null(chanrec->topic);
chanrec->topic = recoded == NULL ? NULL : g_strdup(recoded);
}
g_free(recoded);
g_free_not_null(chanrec->topic_by);
chanrec->topic_by = g_strdup(setby);