]> sigrok.org Git - libsigrok.git/commitdiff
C++: Fix leak of GVariant in ConfigKey::parse_string().
authorMartin Ling <redacted>
Thu, 24 Jul 2014 17:26:19 +0000 (18:26 +0100)
committerMartin Ling <redacted>
Thu, 24 Jul 2014 22:42:53 +0000 (23:42 +0100)
bindings/cxx/ConfigKey_methods.cpp

index 54fa66c181309143a5cb4c589275ed748cc94106..98b4e45b5e99e6531484bb96edfb7f16563cd9c2 100644 (file)
@@ -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);
 }