]> sigrok.org Git - libsigrok.git/commitdiff
hp-3478a: Fix glib variant ref count in SET MQ request.
authorFrank Stettner <redacted>
Sun, 3 May 2020 09:55:05 +0000 (11:55 +0200)
committerUwe Hermann <redacted>
Tue, 26 May 2020 19:17:32 +0000 (21:17 +0200)
src/hardware/hp-3478a/api.c

index 69c1d711ca65f7691b00a4ab4473caca4092b76f..cc5d4cb7a172ccc227a1a4082023d1d50027022a 100644 (file)
@@ -240,6 +240,7 @@ static int config_set(uint32_t key, GVariant *data,
        case SR_CONF_MEASURED_QUANTITY:
                tuple_child = g_variant_get_child_value(data, 0);
                mq = g_variant_get_uint32(tuple_child);
+               g_variant_unref(tuple_child);
                tuple_child = g_variant_get_child_value(data, 1);
                mq_flags = g_variant_get_uint64(tuple_child);
                g_variant_unref(tuple_child);