[gtk+] css: Fix leak of lists while building tree
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] css: Fix leak of lists while building tree
- Date: Fri, 30 Nov 2012 13:57:39 +0000 (UTC)
commit 2dbeabdc58b0a77aa286a5b47d5674c7366f0b48
Author: Alexander Larsson <alexl redhat com>
Date: Thu Nov 29 19:10:57 2012 +0100
css: Fix leak of lists while building tree
gtk/gtkcssselector.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c
index a9800ac..29ca387 100644
--- a/gtk/gtkcssselector.c
+++ b/gtk/gtkcssselector.c
@@ -1946,6 +1946,9 @@ subdivide_infos (GList *infos, GtkCssSelectorTree *parent)
if (remaining)
tree->sibling = subdivide_infos (remaining, parent);
+ g_list_free (matched);
+ g_list_free (remaining);
+
return tree;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]