[Pidgin] #10275: check for non-null GtkSpell pointer before detaching
Pidgin
trac at pidgin.im
Thu Sep 10 12:04:54 EDT 2009
#10275: check for non-null GtkSpell pointer before detaching
--------------------------+-------------------------------------------------
Reporter: jts | Owner: rekkanoryo
Type: patch | Status: new
Component: unclassified | Version: 2.6.2
Keywords: |
--------------------------+-------------------------------------------------
minor patch to suppress GtkSpell assertion failure message when detaching
GtkSpell object which was not successfully attached to begin with.
{{{
--- pidgin/gtkconv.c.2.6.2 2009-09-10 11:47:11.355189000 -0400
+++ pidgin/gtkconv.c 2009-09-10 10:34:26.178846000 -0400
@@ -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
}}}
--
Ticket URL: <http://developer.pidgin.im/ticket/10275>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list