mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 13:38:05 +02:00
compositor-x11: Don't leak the looked up name for skipped outputs
This commit is contained in:
parent
35483aaab9
commit
d3cca9f8d2
1 changed files with 3 additions and 1 deletions
|
|
@ -1525,8 +1525,10 @@ x11_compositor_create(struct wl_display *display,
|
|||
if (strcmp(section_name, "output") != 0)
|
||||
continue;
|
||||
weston_config_section_get_string(section, "name", &name, NULL);
|
||||
if (name == NULL || name[0] != 'X')
|
||||
if (name == NULL || name[0] != 'X') {
|
||||
free(name);
|
||||
continue;
|
||||
}
|
||||
|
||||
weston_config_section_get_string(section,
|
||||
"mode", &mode, "1024x600");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue