Commit 8cb78d82 authored by Alexander Larsson's avatar Alexander Larsson

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.
parent b8d28064
...@@ -58,7 +58,7 @@ _gtk_size_request_cache_free (SizeRequestCache *cache) ...@@ -58,7 +58,7 @@ _gtk_size_request_cache_free (SizeRequestCache *cache)
{ {
if (cache->requests_x) if (cache->requests_x)
free_sizes_x (cache->requests_x); free_sizes_x (cache->requests_x);
if (cache->requests_x) if (cache->requests_y)
free_sizes_y (cache->requests_y); free_sizes_y (cache->requests_y);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment