[gtk+] icon cache: Fix double free



commit 3c279b14926ce6c8676fc89884a582bd82a09875
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Nov 30 16:18:14 2012 +0100

    icon cache: Fix double free
    
    The symbolic icon cache code free crashed with a double free
    due to a missing ->next in the loop.

 gtk/gtkicontheme.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index dc58925..0520686 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -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);
 



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