There's a g_variant that's unref'ed in the analog output system that may
never have been set. Just needs a check before the unref:
diff --git a/src/output/analog.c b/src/output/analog.c
index 5f77a59..019279f 100644
--- a/src/output/analog.c
+++ b/src/output/analog.c
@@ -161,7 +161,8 @@ static int cleanup(struct sr_output *o)
ctx = o->priv;
g_ptr_array_free(ctx->channellist, 1);
- g_variant_unref(options[0].def);
+ if (!options[0].def)
+ g_variant_unref(options[0].def);
g_slist_free_full(options[0].values,
(GDestroyNotify)g_variant_unref);
g_free(ctx->fdata);
g_free(ctx);
------------------------------------------------------------------------------
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel