diff options
author | Timo Sirainen <cras@irssi.org> | 2001-12-07 04:27:32 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-12-07 04:27:32 +0000 |
commit | 5bab99f096fa7497785a98e0538fcb367b93ddbf (patch) | |
tree | 30a641c2e128eb5383e63d8b26111758887e554c | |
parent | d59dfd54b3c18a2fdb1bc74815083cfd88845a2c (diff) | |
download | irssi-5bab99f096fa7497785a98e0538fcb367b93ddbf.zip |
Fixed 2 small memory leaks.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2209 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-text/statusbar.c | 1 | ||||
-rw-r--r-- | src/irc/core/channels-query.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c index b1eb1454..75aec846 100644 --- a/src/fe-text/statusbar.c +++ b/src/fe-text/statusbar.c @@ -515,6 +515,7 @@ STATUSBAR_REC *statusbar_create(STATUSBAR_GROUP_REC *group, if (*value == '\0') { /* fallback to default statusbar background (also provides backwards compatibility..) */ + g_free(value); value = theme_format_expand(theme, "{sb_background}"); } } diff --git a/src/irc/core/channels-query.c b/src/irc/core/channels-query.c index 28a1cce7..035eaa4a 100644 --- a/src/irc/core/channels-query.c +++ b/src/irc/core/channels-query.c @@ -483,6 +483,8 @@ static void event_end_of_who(IRC_SERVER_REC *server, const char *data) send them again separately */ query_current_error(server); } + + g_free(params); } static void event_end_of_banlist(IRC_SERVER_REC *server, const char *data) |