# HG changeset patch # User Daniel Atallah # Date 1252982639 0 # Node ID ddbb3a85d9d807d7f9faee646c993757d05023d8 # Parent ca0d55a8943f94f6c9e42cf1538bf6f83ec1e0c8 Patch from Toby Schaffer to avoid an assertion when detaching an non-existant GtkSpell pointer. Fixes #10275. diff -r ca0d55a8943f -r ddbb3a85d9d8 pidgin/gtkconv.c --- 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