[gedit] filebrowser: correctly unref schema



commit 5a6eaa7f180f3c3ae4dd2383acd6758a31a2fb32
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Jan 16 22:24:55 2014 +0100

    filebrowser: correctly unref schema

 plugins/filebrowser/gedit-file-browser-plugin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/filebrowser/gedit-file-browser-plugin.c b/plugins/filebrowser/gedit-file-browser-plugin.c
index 72e1fa6..4134e07 100644
--- a/plugins/filebrowser/gedit-file-browser-plugin.c
+++ b/plugins/filebrowser/gedit-file-browser-plugin.c
@@ -142,7 +142,7 @@ settings_try_new (const gchar *schema_id)
        if (schema != NULL)
        {
                settings = g_settings_new_full (schema, NULL, NULL);
-               g_object_unref (schema);
+               g_settings_schema_unref (schema);
        }
 
        return settings;


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