summaryrefslogtreecommitdiff
path: root/finch/gntroomlist.c
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@pidgin.im>2008-01-07 15:16:33 +0000
committerSadrul Habib Chowdhury <sadrul@pidgin.im>2008-01-07 15:16:33 +0000
commit996cf417df0949fda67fa73b5d329af06531762e (patch)
tree053571e6991e1f3122e124c461d4260a85e12661 /finch/gntroomlist.c
parente32f4ce48ef2bff81af3a0d87fc287d837ac4cbd (diff)
downloadpidgin-996cf417df0949fda67fa73b5d329af06531762e.tar.gz
Unset some stuff to make sure Sylar can't kill us.
Diffstat (limited to 'finch/gntroomlist.c')
-rw-r--r--finch/gntroomlist.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/finch/gntroomlist.c b/finch/gntroomlist.c
index 4a3fd2c5c8..3f5577353e 100644
--- a/finch/gntroomlist.c
+++ b/finch/gntroomlist.c
@@ -65,8 +65,12 @@ static void
unset_roomlist(gpointer null)
{
froomlist.window = NULL;
- if (froomlist.roomlist)
+ if (froomlist.roomlist) {
purple_roomlist_unref(froomlist.roomlist);
+ froomlist.roomlist = NULL;
+ }
+ froomlist.account = NULL;
+ froomlist.tree = NULL;
}
static void
@@ -97,6 +101,7 @@ static void fl_get_list(GntWidget *button, gpointer null)
if (!gc)
return;
+ update_roomlist(NULL);
froomlist.roomlist = purple_roomlist_get_list(gc);
gnt_box_give_focus_to_child(GNT_BOX(froomlist.window), froomlist.tree);
}