mirror of
https://github.com/yshui/picom.git
synced 2025-04-07 17:44:04 -04:00
config: fix use-after-free
When legacy backends are enabled, `options->all_scripts` is freed by option sanitization, but is later used again by `generate_fading_config`. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
69dd18d771
commit
56fea383f0
1 changed files with 1 additions and 1 deletions
|
@ -793,7 +793,7 @@ static bool sanitize_options(struct options *opt) {
|
|||
for (size_t i = 0; i < ARR_SIZE(opt->animations); i++) {
|
||||
opt->animations[i].script = NULL;
|
||||
}
|
||||
dynarr_free(opt->all_scripts, script_ptr_deinit);
|
||||
dynarr_clear(opt->all_scripts, script_ptr_deinit);
|
||||
}
|
||||
|
||||
if (opt->window_shader_fg || opt->window_shader_fg_rules) {
|
||||
|
|
Loading…
Add table
Reference in a new issue