aboutsummaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c3
1 files changed, 3 insertions, 0 deletions
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] == ',';