From ed022ab4e3b17d488221c182a898d537569aa7e4 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 3 Feb 2020 04:59:17 -0800 Subject: libs/sig: cosmetic rearrangement Make sig_ops_t.destroy functions consistently after init, no functional changes. --- src/libs/sig/ops_mult.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libs/sig/ops_mult.c') diff --git a/src/libs/sig/ops_mult.c b/src/libs/sig/ops_mult.c index 7133e25..2d4e1ac 100644 --- a/src/libs/sig/ops_mult.c +++ b/src/libs/sig/ops_mult.c @@ -29,24 +29,24 @@ static void ops_mult_init(void *context, va_list ap) } -static float ops_mult_output(void *context, unsigned ticks_ms) +static void ops_mult_destroy(void *context) { ops_mult_ctxt_t *ctxt = context; assert(ctxt); - return sig_output(ctxt->a, ticks_ms) * sig_output(ctxt->b, ticks_ms); + sig_free(ctxt->a); + sig_free(ctxt->b); } -static void ops_mult_destroy(void *context) +static float ops_mult_output(void *context, unsigned ticks_ms) { ops_mult_ctxt_t *ctxt = context; assert(ctxt); - sig_free(ctxt->a); - sig_free(ctxt->b); + return sig_output(ctxt->a, ticks_ms) * sig_output(ctxt->b, ticks_ms); } -- cgit v1.2.3