icon cache: Fix double free

The symbolic icon cache code free crashed with a double free
due to a missing ->next in the loop.
This commit is contained in:
Alexander Larsson 2012-11-30 16:18:14 +01:00
parent 9eea724e3b
commit 3c279b1492

View 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);