forked from AuroraMiddleware/gtk
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:
parent
9eea724e3b
commit
3c279b1492
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user