# HG changeset patch # User Marcus Lundblad # Date 1224885055 0 # Node ID 9f039d14bf35d792dbcb348c73776b46dbacc1f4 # Parent e0cfdf4a5a38954f77d0d7c018ae7fc431b8fbf5 What was I thinking... The GtkIMHtmlSmileys in the smiley trees aren't owned by the smiley trees, so NULLing a pointer in there is not a good idea... By the time gtk_smiley_tree_destroy is called the smileys are gone. This should fix #7345 and that "crash when changing smiley theme while there are smileys in input boxes" bug someone reported on #pidgin Closes #7345 diff -r e0cfdf4a5a38 -r 9f039d14bf35 pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Fri Oct 24 17:42:32 2008 +0000 +++ b/pidgin/gtkimhtml.c Fri Oct 24 21:50:55 2008 +0000 @@ -348,9 +348,7 @@ g_string_free (t->values, TRUE); g_free (t->children); } - if (t && t->image) { - t->image->imhtml = NULL; - } + g_free (t); } }