mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 05:18:01 +02:00
compositor-drm: Handle incomplete [output] sections without crashing
This commit is contained in:
parent
e377822c64
commit
8ff691593c
1 changed files with 6 additions and 1 deletions
|
|
@ -2050,8 +2050,13 @@ output_section_done(void *data)
|
|||
|
||||
output = malloc(sizeof *output);
|
||||
|
||||
if (!output)
|
||||
if (!output || !output_name || !output_mode) {
|
||||
free(output_name);
|
||||
output_name = NULL;
|
||||
free(output_mode);
|
||||
output_mode = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
output->config = OUTPUT_CONFIG_INVALID;
|
||||
output->name = output_name;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue