# HG changeset patch # User Marcus Lundblad # Date 1256513597 0 # Node ID 1cf8826f901c8a5f9c27df66227f3ea907fae8c2 # Parent 9827f5d3571f8ca5680fa8fbdd51e23733203264 And that should be done in gtk_imhtml_insert_smiley_at_iter too... diff -r 9827f5d3571f -r 1cf8826f901c pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Sun Oct 25 23:17:47 2009 +0000 +++ b/pidgin/gtkimhtml.c Sun Oct 25 23:33:17 2009 +0000 @@ -5075,7 +5075,8 @@ gtk_container_add(GTK_CONTAINER(ebox), img); gtk_widget_show(img); g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_plaintext", text, g_free); - g_object_set_data(G_OBJECT(anchor), "gtkimhtml_tiptext", text); + g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_tiptext", + g_strdup(text), g_free); g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_htmltext", g_strdup(smiley), g_free); gtk_text_view_add_child_at_anchor(GTK_TEXT_VIEW(imhtml), ebox, anchor); }