diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-03-19 12:24:43 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-03-19 12:24:43 -0700 |
commit | f08356c4d204b07847a1d550b2acda44a897f970 (patch) | |
tree | 8b3e7c46de3f45d07d8427d9145978d651d9aa26 /src/modules/compose/compose.c | |
parent | 292357d284a6cb067a6cb3c7779225e65edb475e (diff) |
*: use til_module_destroy_context()
Mechanically replaced ad-hoc til_module_t.destroy_context()
invocations with helper calls.
Diffstat (limited to 'src/modules/compose/compose.c')
-rw-r--r-- | src/modules/compose/compose.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/compose/compose.c b/src/modules/compose/compose.c index cd15fa1..3e5334b 100644 --- a/src/modules/compose/compose.c +++ b/src/modules/compose/compose.c @@ -92,10 +92,8 @@ static void compose_destroy_context(void *context) { compose_context_t *ctxt = context; - for (int i = 0; i < ctxt->n_layers; i++) { - if (ctxt->layers[i].module_ctxt) - ctxt->layers[i].module->destroy_context(ctxt->layers[i].module_ctxt); - } + for (int i = 0; i < ctxt->n_layers; i++) + til_module_destroy_context(ctxt->layers[i].module, ctxt->layers[i].module_ctxt); free(context); } |