diff options
Diffstat (limited to 'src/modules/compose')
-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); } |