changeset 15353:916e438a314e

[gaim-migrate @ 18145] crash fix committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 17 Jan 2007 09:13:44 +0000
parents 70407d31099b
children 445b2bee14b9
files gtk/plugins/xmppconsole.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/plugins/xmppconsole.c	Wed Jan 17 09:12:01 2007 +0000
+++ b/gtk/plugins/xmppconsole.c	Wed Jan 17 09:13:44 2007 +0000
@@ -688,8 +688,8 @@
 static gboolean
 plugin_unload(GaimPlugin *plugin)
 {
-	gtk_widget_destroy(console->window);
-	console->window = NULL;
+	if (console)
+		gtk_widget_destroy(console->window);
 	return TRUE;
 }