diff options
Diffstat (limited to 'src/modules/compose/compose.c')
-rw-r--r-- | src/modules/compose/compose.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/modules/compose/compose.c b/src/modules/compose/compose.c index d4835cc..2740939 100644 --- a/src/modules/compose/compose.c +++ b/src/modules/compose/compose.c @@ -381,10 +381,8 @@ static int compose_setup(const til_settings_t *settings, til_setting_t **res_set res_setting, res_desc, &setup->layers[i].module_setup); /* finalize! */ - if (r < 0) { - til_setup_free(&setup->til_setup); - return r; - } + if (r < 0) + return til_setup_free_with_ret_err(&setup->til_setup, r); assert(r == 0); } @@ -393,10 +391,8 @@ static int compose_setup(const til_settings_t *settings, til_setting_t **res_set res_setting, res_desc, &setup->texture.module_setup); /* finalize! */ - if (r < 0) { - til_setup_free(&setup->til_setup); - return r; - } + if (r < 0) + return til_setup_free_with_ret_err(&setup->til_setup, r); assert(r == 0); |