summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/compose/compose.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/modules/compose/compose.c b/src/modules/compose/compose.c
index 957d176..cf1c9b1 100644
--- a/src/modules/compose/compose.c
+++ b/src/modules/compose/compose.c
@@ -220,15 +220,13 @@ static void compose_setup_free(til_setup_t *setup)
{
compose_setup_t *s = (compose_setup_t *)setup;
- if (s) {
- for (size_t i = 0; i < s->n_layers; i++) {
- free(s->layers[i].module);
- til_setup_free(s->layers[i].setup);
- }
- til_setup_free(s->texture.setup);
- free(s->texture.module);
- free(setup);
+ for (size_t i = 0; i < s->n_layers; i++) {
+ free(s->layers[i].module);
+ til_setup_free(s->layers[i].setup);
}
+ til_setup_free(s->texture.setup);
+ free(s->texture.module);
+ free(setup);
}
© All Rights Reserved