changeset 28626:ddbb3a85d9d8

Patch from Toby Schaffer to avoid an assertion when detaching an non-existant GtkSpell pointer. Fixes #10275.
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 15 Sep 2009 02:43:59 +0000
parents ca0d55a8943f
children 08f8d45e3a14
files pidgin/gtkconv.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Tue Sep 15 01:04:11 2009 +0000
+++ b/pidgin/gtkconv.c	Tue Sep 15 02:43:59 2009 +0000
@@ -7277,7 +7277,8 @@
 			pidgin_setup_gtkspell(GTK_TEXT_VIEW(gtkconv->entry));
 		else {
 			spell = gtkspell_get_from_text_view(GTK_TEXT_VIEW(gtkconv->entry));
-			gtkspell_detach(spell);
+			if (spell)
+				gtkspell_detach(spell);
 		}
 	}
 #endif