gtk+ r19658 - in branches/gtk-2-12: . gtk



Author: mitch
Date: Tue Feb 26 14:21:41 2008
New Revision: 19658
URL: http://svn.gnome.org/viewvc/gtk+?rev=19658&view=rev

Log:
2008-02-26  Michael Natterer  <mitch imendio com>

	Merged from trunk:

	* 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.



Modified:
   branches/gtk-2-12/ChangeLog
   branches/gtk-2-12/gtk/gtktextbufferserialize.c

Modified: branches/gtk-2-12/gtk/gtktextbufferserialize.c
==============================================================================
--- branches/gtk-2-12/gtk/gtktextbufferserialize.c	(original)
+++ branches/gtk-2-12/gtk/gtktextbufferserialize.c	Tue Feb 26 14:21:41 2008
@@ -1625,17 +1625,8 @@
 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);
 



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