mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
gtksizerequestcache: Fix typo that lead to crash/leak
We were checking for cache->requests_x but freeing cache->requests_y which could cause a crash/leak.
This commit is contained in:
parent
b8d2806417
commit
8cb78d82d6
@ -58,7 +58,7 @@ _gtk_size_request_cache_free (SizeRequestCache *cache)
|
||||
{
|
||||
if (cache->requests_x)
|
||||
free_sizes_x (cache->requests_x);
|
||||
if (cache->requests_x)
|
||||
if (cache->requests_y)
|
||||
free_sizes_y (cache->requests_y);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user