From 21fb9be7b28843d9232803b90137c7251fe9194e Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sun, 24 Nov 2024 20:14:59 +0100 Subject: Add change function to other blocks --- src/config.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index 6d671b9..ffceba9 100644 --- a/src/config.c +++ b/src/config.c @@ -193,6 +193,9 @@ static bool config_read_color(const char *value, color_t *result) static bool config_read_gradient(const char *value, gradient_t *result) { + // TODO: Ensure that this is correct + gradient_free(result); + size_t count = 0; for (size_t i = 0; value[i] != '\0'; ++i) count += value[i] == ','; -- cgit v1.2.3