compositor-x11: Don't leak the looked up name for skipped outputs
This commit is contained in:
committed by
Kristian Høgsberg
parent
5ab9c75d59
commit
5c4245d70d
@@ -1525,8 +1525,10 @@ x11_compositor_create(struct wl_display *display,
|
|||||||
if (strcmp(section_name, "output") != 0)
|
if (strcmp(section_name, "output") != 0)
|
||||||
continue;
|
continue;
|
||||||
weston_config_section_get_string(section, "name", &name, NULL);
|
weston_config_section_get_string(section, "name", &name, NULL);
|
||||||
if (name == NULL || name[0] != 'X')
|
if (name == NULL || name[0] != 'X') {
|
||||||
|
free(name);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
weston_config_section_get_string(section,
|
weston_config_section_get_string(section,
|
||||||
"mode", &mode, "1024x600");
|
"mode", &mode, "1024x600");
|
||||||
|
|||||||
Reference in New Issue
Block a user