diff --git a/source/modes/script.c b/source/modes/script.c index cab78515..16e05a96 100644 --- a/source/modes/script.c +++ b/source/modes/script.c @@ -136,6 +136,7 @@ static void parse_header_entry(Mode *sw, char *line, ssize_t length) { } else if (strcasecmp(line, "use-hot-keys") == 0) { pd->use_hot_keys = (strcasecmp(value, "true") == 0); } else if (strcasecmp(line, "data") == 0) { + g_free(pd->data); pd->data = g_strdup(value); } }