# HG changeset patch # User Marcus Lundblad # Date 1256512667 0 # Node ID 9827f5d3571f8ca5680fa8fbdd51e23733203264 # Parent 6e703969157dc0205d7c04a4cc63e6a6de0277d3 Fix randomly broken tooltip for custom smileys. Thanks to Sadrul for figuring out the solution. diff -r 6e703969157d -r 9827f5d3571f pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Sun Oct 25 15:26:48 2009 +0000 +++ b/pidgin/gtkimhtml.c Sun Oct 25 23:17:47 2009 +0000 @@ -5053,7 +5053,7 @@ It will be destroyed when 'anchor' is destroyed. */ anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, iter); 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); /* This catches the expose events generated by animated