summaryrefslogtreecommitdiff
path: root/src/fe-common/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-12-10 20:30:03 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-12-10 20:30:03 +0000
commit6825f1e67eb5ccf5083ef5e848f9c9f8de222170 (patch)
tree61d23cd280d3f70c2bdb09bdd4c2f97c4dde4540 /src/fe-common/irc
parentbb55d3ff4d0b9f889f3c9834c10ad014f2edf9a1 (diff)
downloadirssi-6825f1e67eb5ccf5083ef5e848f9c9f8de222170.zip
GC fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3056 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r--src/fe-common/irc/fe-netjoin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fe-common/irc/fe-netjoin.c b/src/fe-common/irc/fe-netjoin.c
index 90cf76b7..3d4bcc40 100644
--- a/src/fe-common/irc/fe-netjoin.c
+++ b/src/fe-common/irc/fe-netjoin.c
@@ -209,15 +209,15 @@ static void print_netjoins(NETJOIN_SERVER_REC *server)
old = gslist_find_icase_string(rec->old_channels,
realchannel);
if (old != NULL) {
- g_free(old->data);
+ void *data = old->data;
rec->old_channels =
- g_slist_remove(rec->old_channels,
- old->data);
+ g_slist_remove(rec->old_channels, data);
+ g_free(data);
}
- g_free(channel);
rec->now_channels =
g_slist_remove(rec->now_channels, channel);
+ g_free(channel);
}
if (rec->old_channels == NULL)