changeset 11056:9be8ac00f27f

[gaim-migrate @ 13007] Don't crash when unregistering debug categroies and the debug window is not open committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 04 Jul 2005 20:03:18 +0000
parents df0241eb602c
children e9eeacd1a8d0
files src/gtkdebug.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkdebug.c	Sun Jul 03 21:48:56 2005 +0000
+++ b/src/gtkdebug.c	Mon Jul 04 20:03:18 2005 +0000
@@ -669,6 +669,9 @@
 {
 	GtkTreeModel *model = NULL;
 
+	if (debug_win == NULL)
+		return;
+
 	model = gtk_tree_view_get_model(GTK_TREE_VIEW(debug_win->treeview));
 
 	gtk_tree_model_foreach(model,