[gtk+] cssprovider: Fix leak
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssprovider: Fix leak
- Date: Fri, 23 Dec 2011 21:40:25 +0000 (UTC)
commit 58d553c60437cd0c8de6b39b7a27e9448ed1ab88
Author: Benjamin Otte <otte redhat com>
Date: Fri Dec 23 17:13:42 2011 +0100
cssprovider: Fix leak
Thanks to the heroic valgrinding efforts of Olivier Sessnik, another
leak could be plugged.
gtk/gtkcssprovider.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 1ac52bc..4b8ef52 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -1215,6 +1215,8 @@ gtk_css_ruleset_matches (GtkCssRuleset *ruleset,
static void
gtk_css_scanner_destroy (GtkCssScanner *scanner)
{
+ if (scanner->section)
+ gtk_css_section_unref (scanner->section);
g_object_unref (scanner->provider);
if (scanner->file)
g_object_unref (scanner->file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]