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:
010f98b
)
compositor: Initialize destroy_listener_list for internal surfaces too
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 23 Feb 2012 22:38:33 +0000
(17:38 -0500)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 23 Feb 2012 22:38:33 +0000
(17:38 -0500)
We use this to look up user data on the surface, so make sure the list is
always valid.
src/compositor.c
patch
|
blob
|
history
diff --git
a/src/compositor.c
b/src/compositor.c
index
80ee2ba
..
ef1c6ae
100644
(file)
--- a/
src/compositor.c
+++ b/
src/compositor.c
@@
-199,6
+199,8
@@
weston_surface_create(struct weston_compositor *compositor)
if (surface == NULL)
return NULL;
+ wl_list_init(&surface->surface.resource.destroy_listener_list);
+
wl_list_init(&surface->link);
wl_list_init(&surface->buffer_link);