Mercurial > pidgin
changeset 22028:bfa85af677f2
Unset some stuff to make sure Sylar can't kill us.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 07 Jan 2008 15:16:33 +0000 |
parents | e8cb4df7b60a |
children | fbef14f35c78 |
files | finch/gntroomlist.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/gntroomlist.c Mon Jan 07 09:14:39 2008 +0000 +++ b/finch/gntroomlist.c Mon Jan 07 15:16:33 2008 +0000 @@ -65,8 +65,12 @@ 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 @@ 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); }