]> Pileus Git - ~andy/gtk/commitdiff
don't g_free() the members of info->tag_stack since they are a) gobjects
authorMichael Natterer <mitch@imendio.com>
Tue, 26 Feb 2008 14:20:08 +0000 (14:20 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Tue, 26 Feb 2008 14:20:08 +0000 (14:20 +0000)
2008-02-26  Michael Natterer  <mitch@imendio.com>

* gtk/gtktextbufferserialize.c (parse_info_free): don't g_free()
the members of info->tag_stack since they are a) gobjects and b)
not even owned by us, ugh... Fixes crash when deserializing fails.

svn path=/trunk/; revision=19657

ChangeLog
gtk/gtktextbufferserialize.c

index f54748cc4fb71983775f299803d2c4e6e08cc8b7..a98c8f8e14348068d44121b2756f6d76120dcc83 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-02-26  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtktextbufferserialize.c (parse_info_free): don't g_free()
+       the members of info->tag_stack since they are a) gobjects and b)
+       not even owned by us, ugh... Fixes crash when deserializing fails.
+
 2008-02-26  Sven Neumann  <sven@gimp.org>
 
        * docs/tools/shooter.c (find_toplevel_window)
 
 2008-02-22  Dominic Lachowicz  <domlachowicz@gmail.com>
 
-       * gdk-pixbuf/queryloaders.c (loader_sanity_check): It's perfectly acceptable
-       for a module to only support the save_to_callback() method if it marks itself
-       as WRITABLE
-       
+       * gdk-pixbuf/queryloaders.c (loader_sanity_check): It's perfectly
+       acceptable for a module to only support the save_to_callback()
+       method if it marks itself as WRITABLE
+
 2008-02-16  Matthias Clasen  <mclasen@redhat.com>
        
        * configure.in: Bump version
index 217208c4b42f5f18950410203003f757ecd4474a..c36409b4fd5ca6ff05d1bb0acfd13d48e5714ffe 100644 (file)
@@ -1625,17 +1625,8 @@ text_span_free (TextSpan *span)
 static void
 parse_info_free (ParseInfo *info)
 {
-  GSList *slist;
   GList *list;
 
-  slist = info->tag_stack;
-  while (slist)
-    {
-      g_free (slist->data);
-
-      slist = slist->next;
-    }
-
   g_slist_free (info->tag_stack);
   g_slist_free (info->states);