From: Alexander Larsson Date: Fri, 30 Nov 2012 15:18:14 +0000 (+0100) Subject: icon cache: Fix double free X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=3c279b14926ce6c8676fc89884a582bd82a09875;p=~andy%2Fgtk icon cache: Fix double free The symbolic icon cache code free crashed with a double free due to a missing ->next in the loop. --- diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index dc589254c..052068620 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);