# HG changeset patch # User Sadrul Habib Chowdhury # Date 1179491251 0 # Node ID 2e2f6cf3f85edae6fc00ca2c3801d6e033b9fd7b # Parent e22968d3313155aa254537e65e6be2cfa04261e2 Do not crash when trying to insert a smiley for a protocol not mentioned in the theme, and there's no default smiley set. diff -r e22968d33131 -r 2e2f6cf3f85e pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Fri May 18 11:42:49 2007 +0000 +++ b/pidgin/gtkimhtml.c Fri May 18 12:27:31 2007 +0000 @@ -4441,7 +4441,7 @@ } } - if (imhtml_smiley->flags & GTK_IMHTML_SMILEY_CUSTOM) { + if (imhtml_smiley && imhtml_smiley->flags & GTK_IMHTML_SMILEY_CUSTOM) { ebox = gtk_event_box_new(); gtk_event_box_set_visible_window(GTK_EVENT_BOX(ebox), FALSE); gtk_widget_show(ebox);