textbufferserialize: do not leak list of tags

This commit is contained in:
Paolo Borelli 2014-03-30 18:29:15 +02:00
parent 90b78f89d3
commit a0f2e6990f

View File

@ -576,6 +576,8 @@ serialize_text (GtkTextBuffer *buffer,
}
while (!gtk_text_iter_equal (&iter, &context->end));
g_slist_free (tag_list);
/* Close any open tags */
for (tag_list = active_tags; tag_list; tag_list = tag_list->next)
g_string_append (context->text_str, "</apply_tag>");