gpu: Fix up gc

Make the gc loop free the the right item.
This commit is contained in:
Matthias Clasen 2024-01-19 11:23:14 -05:00
parent c3fcf0f7b0
commit b4b7e9b040

View File

@ -336,7 +336,7 @@ gsk_gpu_device_gc (GskGpuDevice *self,
{
next = cached->next;
if (gsk_gpu_cached_should_collect (self, cached, timestamp))
gsk_gpu_cached_free (self, priv->first_cached);
gsk_gpu_cached_free (self, cached);
}
}