projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c3b01f
)
compositor-wayland: free output before returning
author
U. Artie Eoff
<ullysses.a.eoff@intel.com>
Tue, 6 May 2014 21:50:01 +0000
(14:50 -0700)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 6 May 2014 22:40:55 +0000
(15:40 -0700)
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/compositor-wayland.c
patch
|
blob
|
history
diff --git
a/src/compositor-wayland.c
b/src/compositor-wayland.c
index
67f15be
..
35e99a6
100644
(file)
--- a/
src/compositor-wayland.c
+++ b/
src/compositor-wayland.c
@@
-1723,8
+1723,11
@@
wayland_compositor_register_output(struct wayland_compositor *c, uint32_t id)
output->id = id;
output->global = wl_registry_bind(c->parent.registry, id,
&wl_output_interface, 1);
- if (!output->global)
+ if (!output->global) {
+ free(output);
return;
+ }
+
wl_output_add_listener(output->global, &output_listener, output);
output->scale = 0;