1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

[Script] Fix memory leak.

This commit is contained in:
Dave Davenport 2022-03-02 22:08:14 +01:00
parent 497d18d108
commit fe656d2d94

View file

@ -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);
}
}