]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hp-3478a/api.c
hp-3478a: Fix glib variant ref count in SET MQ request.
[libsigrok.git] / 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);