mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-30 02:57:38 +00:00
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)
|
while (cache != NULL)
|
||||||
{
|
{
|
||||||
next = cache;
|
next = cache->next;
|
||||||
g_object_unref (cache->pixbuf);
|
g_object_unref (cache->pixbuf);
|
||||||
g_free (cache);
|
g_free (cache);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user