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/montage | |
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/montage')
-rw-r--r-- | src/modules/montage/montage.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/montage/montage.c b/src/modules/montage/montage.c index 2af0457..5782782 100644 --- a/src/modules/montage/montage.c +++ b/src/modules/montage/montage.c @@ -101,14 +101,8 @@ static void montage_destroy_context(void *context) { montage_context_t *ctxt = context; - for (int i = 0; i < ctxt->n_modules; i++) { - const til_module_t *module = ctxt->modules[i]; - - if (!ctxt->contexts[i]) - continue; - - module->destroy_context(ctxt->contexts[i]); - } + for (int i = 0; i < ctxt->n_modules; i++) + til_module_destroy_context(ctxt->modules[i], ctxt->contexts[i]); free(ctxt->contexts); free(ctxt->modules); |