diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/attachment-reminder/attachment-reminder.c | 3 | ||||
-rw-r--r-- | plugins/templates/templates.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/attachment-reminder/attachment-reminder.c b/plugins/attachment-reminder/attachment-reminder.c index cd41cfb956..d3edd3c01e 100644 --- a/plugins/attachment-reminder/attachment-reminder.c +++ b/plugins/attachment-reminder/attachment-reminder.c @@ -350,10 +350,9 @@ commit_changes (UIData *ui) valid = gtk_tree_model_iter_next (model, &iter); } + /* A floating GVariant is returned, which is consumed by the g_settings_set_value() */ v = g_variant_builder_end (&b); g_settings_set_value (ui->settings, CONF_KEY_ATTACH_REMINDER_CLUES, v); - - g_variant_unref (v); } static void diff --git a/plugins/templates/templates.c b/plugins/templates/templates.c index 358a683dce..18544c31ef 100644 --- a/plugins/templates/templates.c +++ b/plugins/templates/templates.c @@ -189,9 +189,9 @@ commit_changes (UIData *ui) valid = gtk_tree_model_iter_next (model, &iter); } + /* A floating GVariant is returned, which is consumed by the g_settings_set_value() */ v = g_variant_builder_end (&b); g_settings_set_value (ui->settings, CONF_KEY_TEMPLATE_PLACEHOLDERS, v); - g_variant_unref (v); } static void |