]> Pileus Git - ~andy/gtk/commitdiff
icon cache: Fix double free
authorAlexander Larsson <alexl@redhat.com>
Fri, 30 Nov 2012 15:18:14 +0000 (16:18 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 30 Nov 2012 15:19:13 +0000 (16:19 +0100)
The symbolic icon cache code free crashed with a double free
due to a missing ->next in the loop.

gtk/gtkicontheme.c

index dc589254c386c6652b88ea20b295c3d4d423af54..0520686206cdd467cbc034b9af24d4fcaf32c7b9 100644 (file)
@@ -1568,7 +1568,7 @@ symbolic_pixbuf_cache_free (SymbolicPixbufCache *cache)
 
   while (cache != NULL)
     {
-      next = cache;
+      next = cache->next;
       g_object_unref (cache->pixbuf);
       g_free (cache);