diff options
author | Stefano Karapetsas <[email protected]> | 2014-06-06 20:16:24 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-06-06 20:16:24 +0200 |
commit | 1f4945e1ff8d805baeca4e5956a84f8fc9b62cf4 (patch) | |
tree | 55e8a2e9a58ef9870499fab6b468c0a27e4a9f0e /plugins/filebrowser/pluma-file-browser-plugin.c | |
parent | ca9fdb4cef8bdf4aa2982e495784acaa98250ada (diff) | |
download | pluma-1f4945e1ff8d805baeca4e5956a84f8fc9b62cf4.tar.bz2 pluma-1f4945e1ff8d805baeca4e5956a84f8fc9b62cf4.tar.xz |
filebrowser: Fix g_settings_schema_source_lookup usage
Diffstat (limited to 'plugins/filebrowser/pluma-file-browser-plugin.c')
-rw-r--r-- | plugins/filebrowser/pluma-file-browser-plugin.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-plugin.c b/plugins/filebrowser/pluma-file-browser-plugin.c index 030ab783..11b77189 100644 --- a/plugins/filebrowser/pluma-file-browser-plugin.c +++ b/plugins/filebrowser/pluma-file-browser-plugin.c @@ -624,6 +624,7 @@ impl_activate (PlumaPlugin * plugin, PlumaWindow * window) PlumaFileBrowserStore * store; gchar *data_dir; GSettingsSchemaSource *schema_source; + GSettingsSchema *schema; data = g_new0 (PlumaFileBrowserPluginData, 1); @@ -690,9 +691,11 @@ impl_activate (PlumaPlugin * plugin, PlumaWindow * window) /* Install caja preferences */ schema_source = g_settings_schema_source_get_default(); - if (g_settings_schema_source_lookup (schema_source, CAJA_SCHEMA, FALSE)) { + schema = g_settings_schema_source_lookup (schema_source, CAJA_SCHEMA, FALSE); + if (schema != NULL) { data->caja_settings = g_settings_new (CAJA_SCHEMA); install_caja_prefs (data); + g_settings_schema_unref (schema); } /* Connect signals to store the last visited location */ |