Mercurial > pidgin
diff finch/libgnt/gntmain.c @ 18716:0873698f8cce
This fixes a few weird crashes in pygnt.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 29 Jul 2007 15:58:08 +0000 |
parents | 09db6fec9dce |
children | 85b155a574a3 |
line wrap: on
line diff
--- a/finch/libgnt/gntmain.c Sun Jul 29 10:48:45 2007 +0000 +++ b/finch/libgnt/gntmain.c Sun Jul 29 15:58:08 2007 +0000 @@ -517,7 +517,8 @@ void gnt_screen_release(GntWidget *widget) { - gnt_wm_window_close(wm, widget); + if (wm) + gnt_wm_window_close(wm, widget); } void gnt_screen_update(GntWidget *widget) @@ -564,7 +565,9 @@ void gnt_quit() { - g_hash_table_destroy(wm->nodes); /* XXX: */ + g_object_unref(G_OBJECT(wm)); + wm = NULL; + update_panels(); doupdate(); gnt_uninit_colors();