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:
Alexander Larsson 2013-04-29 18:15:12 +02:00
parent b8d2806417
commit 8cb78d82d6

View File

@ -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);
}