| 5376 g_queue_push_tail(r, tmp); |
5376 g_queue_push_tail(r, tmp); |
| 5377 else |
5377 else |
| 5378 text_tag_data_destroy(tmp); |
5378 text_tag_data_destroy(tmp); |
| 5379 } |
5379 } |
| 5380 |
5380 |
| 5381 if (tmp == NULL) |
5381 if (tmp != NULL) { |
| 5382 purple_debug_warning("gtkimhtml", "empty queue, more closing tags than open tags!\n"); |
|
| 5383 else { |
|
| 5384 g_string_append(str, tmp->end); |
5382 g_string_append(str, tmp->end); |
| 5385 text_tag_data_destroy(tmp); |
5383 text_tag_data_destroy(tmp); |
| 5386 } |
5384 } |
| |
5385 #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 */ |
| |
5386 else |
| |
5387 purple_debug_warning("gtkimhtml", "empty queue, more closing tags than open tags!\n"); |
| |
5388 #endif |
| 5387 |
5389 |
| 5388 while ((tmp = g_queue_pop_head(r))) { |
5390 while ((tmp = g_queue_pop_head(r))) { |
| 5389 g_string_append(str, tmp->start); |
5391 g_string_append(str, tmp->start); |
| 5390 g_queue_push_tail(q, tmp); |
5392 g_queue_push_tail(q, tmp); |
| 5391 } |
5393 } |