[gtk+/gtk-3-10] textbufferserialize: do not leak list of tags



commit 1fbd66ea87aa360a83592cd57e625096ca3440c3
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Mar 30 18:29:15 2014 +0200

    textbufferserialize: do not leak list of tags

 gtk/gtktextbufferserialize.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktextbufferserialize.c b/gtk/gtktextbufferserialize.c
index 0b3f547..3976e1f 100644
--- a/gtk/gtktextbufferserialize.c
+++ b/gtk/gtktextbufferserialize.c
@@ -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>");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]