X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=device.c;h=c01bc92f09d0fd8f772c6ff6ee52016632ff1218;hb=660e398fe9f5fc608787f8fd75a9df8aac61026f;hp=212ddb7dc91c1f6289f4f09cc2753dd520fb8efa;hpb=8102cee4d495c7402a7ca70ec40414312129c1f2;p=libsigrok.git diff --git a/device.c b/device.c index 212ddb7d..c01bc92f 100644 --- a/device.c +++ b/device.c @@ -285,7 +285,7 @@ SR_PRIV struct sr_dev_inst *sr_dev_inst_new(int index, int status, sdi->model = model ? g_strdup(model) : NULL; sdi->version = version ? g_strdup(version) : NULL; sdi->probes = NULL; - sdi->probe_groups = NULL; + sdi->channel_groups = NULL; sdi->conn = NULL; sdi->priv = NULL; @@ -309,8 +309,8 @@ SR_PRIV void sr_dev_inst_free(struct sr_dev_inst *sdi) } g_slist_free(sdi->probes); - if (sdi->probe_groups) - g_slist_free(sdi->probe_groups); + if (sdi->channel_groups) + g_slist_free(sdi->channel_groups); g_free(sdi->vendor); g_free(sdi->model);