bindings/cxx: make sure the config value reference is kept

fixes glib warning:
GLib-CRITICAL **: g_variant_unref: assertion 'value->ref_count > 0' failed
This commit is contained in:
Stefan Brüns 2015-11-28 23:18:50 +01:00 committed by Uwe Hermann
parent 8dd5d426f7
commit 7cccc9155c
1 changed files with 1 additions and 1 deletions

View File

@ -1140,7 +1140,7 @@ map<const ConfigKey *, Glib::VariantBase> Meta::config() const
map<const ConfigKey *, Glib::VariantBase> result;
for (auto l = _structure->config; l; l = l->next) {
auto *const config = static_cast<struct sr_config *>(l->data);
result[ConfigKey::get(config->key)] = Glib::VariantBase(config->data);
result[ConfigKey::get(config->key)] = Glib::VariantBase(config->data, true);
}
return result;
}