diff options
author | Valentin Batz <senneth@irssi.org> | 2005-02-06 21:31:58 +0000 |
---|---|---|
committer | vb <vb@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-02-06 21:31:58 +0000 |
commit | 19e800cf236bc8258b9a19a0685dac383f9f82ec (patch) | |
tree | 87050afe454aaad28956d12b9bd9e179345ff729 /src/irc/core | |
parent | a5fdd2358f96b766c5f1a358eb185717bf29cbae (diff) | |
download | irssi-19e800cf236bc8258b9a19a0685dac383f9f82ec.zip |
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
Diffstat (limited to 'src/irc/core')
-rw-r--r-- | src/irc/core/channel-events.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/core/channel-events.c b/src/irc/core/channel-events.c index f5c54932..9e2c4891 100644 --- a/src/irc/core/channel-events.c +++ b/src/irc/core/channel-events.c @@ -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); |