diff options
author | Milan Crha <mcrha@redhat.com> | 2014-05-26 18:22:06 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-05-26 18:22:06 +0800 |
commit | a21b7112751bc5ff43c73a78402d48443c723025 (patch) | |
tree | 3f355f8eebfc6055cc9c762817afbcb16e7b653d /plugins | |
parent | 11ca23d2104e11b7a8df24f9e01d0044da0c7f31 (diff) | |
download | gsoc2013-evolution-a21b7112751bc5ff43c73a78402d48443c723025.tar gsoc2013-evolution-a21b7112751bc5ff43c73a78402d48443c723025.tar.gz gsoc2013-evolution-a21b7112751bc5ff43c73a78402d48443c723025.tar.bz2 gsoc2013-evolution-a21b7112751bc5ff43c73a78402d48443c723025.tar.lz gsoc2013-evolution-a21b7112751bc5ff43c73a78402d48443c723025.tar.xz gsoc2013-evolution-a21b7112751bc5ff43c73a78402d48443c723025.tar.zst gsoc2013-evolution-a21b7112751bc5ff43c73a78402d48443c723025.zip |
Bug 730756 - Incorrect g_variant_unref() call after g_variant_builder_end()
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 |