From: Martin Ling Date: Thu, 24 Jul 2014 17:26:19 +0000 (+0100) Subject: C++: Fix leak of GVariant in ConfigKey::parse_string(). X-Git-Tag: libsigrok-0.4.0~1203 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7009a3921a0394ec5e89c2f0009eae4d7398a560;p=libsigrok.git C++: Fix leak of GVariant in ConfigKey::parse_string(). --- diff --git a/bindings/cxx/ConfigKey_methods.cpp b/bindings/cxx/ConfigKey_methods.cpp index 54fa66c1..98b4e45b 100644 --- a/bindings/cxx/ConfigKey_methods.cpp +++ b/bindings/cxx/ConfigKey_methods.cpp @@ -65,6 +65,6 @@ Glib::VariantBase ConfigKey::parse_string(string value) const throw Error(SR_ERR_BUG); } - return Glib::VariantBase(variant, true); + return Glib::VariantBase(variant, false); }