changeset 1351:3c7ccd2fd4b0

[gaim-migrate @ 1361] bleargh. this should solve problems. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 22 Dec 2000 02:09:39 +0000
parents 2185d9011ec0
children 2e8213567278
files plugins/yay/yay.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/yay/yay.c	Fri Dec 22 01:53:10 2000 +0000
+++ b/plugins/yay/yay.c	Fri Dec 22 02:09:39 2000 +0000
@@ -282,7 +282,8 @@
 	if (gc->inpa)
 		gdk_input_remove(gc->inpa);
 	gc->inpa = -1;
-	yahoo_cmd_logoff(yd->ctxt);
+	if (yd->ctxt)
+		yahoo_cmd_logoff(yd->ctxt);
 	g_hash_table_foreach_remove(yd->hash, yahoo_destroy_hash, NULL);
 	g_hash_table_destroy(yd->hash);
 	g_free(yd);