summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/montage/montage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/montage/montage.c b/src/modules/montage/montage.c
index 4702564..2db9fdd 100644
--- a/src/modules/montage/montage.c
+++ b/src/modules/montage/montage.c
@@ -77,8 +77,9 @@ static til_module_context_t * montage_create_context(unsigned seed, unsigned tic
ctxt->modules[ctxt->n_modules++] = module;
}
- ctxt->contexts = calloc(ctxt->n_modules, sizeof(void *));
+ ctxt->contexts = calloc(ctxt->n_modules, sizeof(til_module_context_t *));
if (!ctxt->contexts) {
+ free(ctxt->modules);
free(ctxt);
return NULL;
© All Rights Reserved