changeset 28432:1cf8826f901c

And that should be done in gtk_imhtml_insert_smiley_at_iter too...
author Marcus Lundblad <ml@update.uu.se>
date Sun, 25 Oct 2009 23:33:17 +0000
parents 9827f5d3571f
children 3e6b997b475d
files pidgin/gtkimhtml.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
 		}