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:
parent
497d18d108
commit
fe656d2d94
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue