[gtksourceview] Avoid memory leak of StyleScheme objects



commit e006c2ac3d47115977a59dfa7b478156cda4dbf3
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Mar 11 17:50:19 2013 +0100

    Avoid memory leak of StyleScheme objects

 gtksourceview/gtksourcestyleschememanager.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourcestyleschememanager.c b/gtksourceview/gtksourcestyleschememanager.c
index d7c0961..f1580ac 100644
--- a/gtksourceview/gtksourcestyleschememanager.c
+++ b/gtksourceview/gtksourcestyleschememanager.c
@@ -366,6 +366,7 @@ reload_if_needed (GtkSourceStyleSchemeManager *mgr)
                        /* scheme with the same id already loaded from a path with higher prio: skip it */
                        if (g_hash_table_contains (schemes_hash, id))
                        {
+                               g_object_unref (scheme);
                                continue;
                        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]