]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hantek-dso/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / hantek-dso / api.c
index 7bf0c5293b7927d0b042ba617316e0ba97c47c3d..efd36853dfc36ea7a1058e9aad31cba810018ff1 100644 (file)
@@ -172,7 +172,7 @@ static struct sr_dev_inst *dso_dev_new(const struct dso_profile *prof)
        struct dev_context *devc;
        int i;
 
-       sdi = sr_dev_inst_new();
+       sdi = g_malloc0(sizeof(struct sr_dev_inst));
        sdi->status = SR_ST_INITIALIZING;
        sdi->vendor = g_strdup(prof->vendor);
        sdi->model = g_strdup(prof->model);