[gtk+] gtksizerequestcache: Fix typo that lead to crash/leak
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtksizerequestcache: Fix typo that lead to crash/leak
- Date: Mon, 29 Apr 2013 16:17:13 +0000 (UTC)
commit 8cb78d82d62f31d6139935f36a5b890c16be2a00
Author: Alexander Larsson <alexl redhat com>
Date: Mon Apr 29 18:15:12 2013 +0200
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.
gtk/gtksizerequestcache.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtksizerequestcache.c b/gtk/gtksizerequestcache.c
index becbc60..81421c1 100644
--- a/gtk/gtksizerequestcache.c
+++ b/gtk/gtksizerequestcache.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]