summaryrefslogtreecommitdiff
path: root/src/modules/rtv
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-03-19 12:24:43 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-03-19 12:24:43 -0700
commitf08356c4d204b07847a1d550b2acda44a897f970 (patch)
tree8b3e7c46de3f45d07d8427d9145978d651d9aa26 /src/modules/rtv
parent292357d284a6cb067a6cb3c7779225e65edb475e (diff)
*: use til_module_destroy_context()
Mechanically replaced ad-hoc til_module_t.destroy_context() invocations with helper calls.
Diffstat (limited to 'src/modules/rtv')
-rw-r--r--src/modules/rtv/rtv.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/rtv/rtv.c b/src/modules/rtv/rtv.c
index bd48eb3..47905ec 100644
--- a/src/modules/rtv/rtv.c
+++ b/src/modules/rtv/rtv.c
@@ -145,9 +145,7 @@ static void setup_next_channel(rtv_context_t *ctxt, unsigned ticks)
if (ctxt->channel->cumulative_time >= rtv_context_duration) {
ctxt->channel->cumulative_time = 0;
- if (ctxt->channel->module->destroy_context)
- ctxt->channel->module->destroy_context(ctxt->channel->module_ctxt);
- ctxt->channel->module_ctxt = NULL;
+ ctxt->channel->module_ctxt = til_module_destroy_context(ctxt->channel->module, ctxt->channel->module_ctxt);
free(ctxt->channel->settings);
ctxt->channel->settings = NULL;
© All Rights Reserved