diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-02-03 04:59:17 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-02-03 04:59:17 -0800 |
commit | ed022ab4e3b17d488221c182a898d537569aa7e4 (patch) | |
tree | a819ba076af3ce233e46dcca78e4c40a01ec90a2 /src/libs/sig/ops_mult.c | |
parent | db99c38a5dfaab56e6255ed28cf6f7392c1a0a27 (diff) |
libs/sig: cosmetic rearrangement
Make sig_ops_t.destroy functions consistently after init, no
functional changes.
Diffstat (limited to 'src/libs/sig/ops_mult.c')
-rw-r--r-- | src/libs/sig/ops_mult.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); } |