[gedit] Do not leak GFile when trying to load a non existing css



commit 0bebb1a24030e2456729db8c485cfaa2ae208c27
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Oct 19 12:53:26 2014 +0200

    Do not leak GFile when trying to load a non existing css

 gedit/gedit-app.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index c502f09..dc5d803 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -493,6 +493,7 @@ load_css_from_resource (const gchar *filename,
 
        if (!required && !g_file_query_exists (css_file, NULL))
        {
+               g_object_unref (css_file);
                return;
        }
 


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