changeset 24234:9f039d14bf35

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
author Marcus Lundblad <ml@update.uu.se>
date Fri, 24 Oct 2008 21:50:55 +0000
parents e0cfdf4a5a38
children 9fc78d436de3 15d6ae92aeb4
files pidgin/gtkimhtml.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);
 	}
 }