projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ab9c75
)
compositor-x11: Don't leak the looked up name for skipped outputs
author
Rob Bradford
<rob@linux.intel.com>
Fri, 26 Jul 2013 15:29:44 +0000
(16:29 +0100)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 30 Jul 2013 18:06:06 +0000
(11:06 -0700)
src/compositor-x11.c
patch
|
blob
|
history
diff --git
a/src/compositor-x11.c
b/src/compositor-x11.c
index
6baf522
..
4a73253
100644
(file)
--- a/
src/compositor-x11.c
+++ b/
src/compositor-x11.c
@@
-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");