Index: src/gtkimhtmltoolbar.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/gtkimhtmltoolbar.c,v
retrieving revision 1.26
diff -u -p -r1.26 gtkimhtmltoolbar.c
--- src/gtkimhtmltoolbar.c 17 May 2004 06:47:19 -0000 1.26
+++ src/gtkimhtmltoolbar.c 22 May 2004 11:03:12 -0000
@@ -515,12 +515,16 @@ close_smiley_dialog(GtkWidget *widget, G
static void
insert_smiley_text(GtkWidget *widget, GtkIMHtmlToolbar *toolbar)
{
- char *smiley_text = g_object_get_data(G_OBJECT(widget), "smiley_text");
+ char *smiley_text, *escaped_smiley;
+
+ smiley_text = g_object_get_data(G_OBJECT(widget), "smiley_text");
+ escaped_smiley = gaim_escape_html(smiley_text);
gtk_imhtml_insert_smiley(GTK_IMHTML(toolbar->imhtml),
GTK_IMHTML(toolbar->imhtml)->protocol_name,
- smiley_text);
+ escaped_smiley);
+ g_free(escaped_smiley);
close_smiley_dialog(NULL, NULL, toolbar);
}