pidgin/gtkimhtml.c

branch
cpw.darkrain42.xmpp.avatars
changeset 25542
eb604c9feee9
parent 25470
b1777c3ab2bb
child 25905
bd09ebd57b11
--- a/pidgin/gtkimhtml.c	Mon Jan 26 06:04:01 2009 +0000
+++ b/pidgin/gtkimhtml.c	Fri Jan 30 18:21:16 2009 +0000
@@ -5378,12 +5378,14 @@
 						text_tag_data_destroy(tmp);
 				}
 
-				if (tmp == NULL)
-					purple_debug_warning("gtkimhtml", "empty queue, more closing tags than open tags!\n");
-				else {
+				if (tmp != NULL) {
 					g_string_append(str, tmp->end);
 					text_tag_data_destroy(tmp);
 				}
+#if 0 /* This can't be allowed to happen because it causes the iters to be invalidated in the debug window imhtml during text copying */
+				else
+					purple_debug_warning("gtkimhtml", "empty queue, more closing tags than open tags!\n");
+#endif
 
 				while ((tmp = g_queue_pop_head(r))) {
 					g_string_append(str, tmp->start);

mercurial