Fix: pass private data to context callbacks
[lttng-ust.git] / liblttng-ust / lttng-context.c
index 0aaae755cc35b324b2a77a083306acea890010cc..7043c1571d78b00fe555bc38756fd54f992e4aa7 100644 (file)
@@ -234,7 +234,7 @@ void lttng_destroy_context(struct lttng_ust_ctx *ctx)
                return;
        for (i = 0; i < ctx->nr_fields; i++) {
                if (ctx->fields[i].destroy)
-                       ctx->fields[i].destroy(&ctx->fields[i]);
+                       ctx->fields[i].destroy(ctx->fields[i].priv);
        }
        free(ctx->fields);
        free(ctx);
This page took 0.023361 seconds and 4 git commands to generate.