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:
4901f6c
)
compositor: Free the right EGLImage
author
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 17 Jul 2012 18:21:25 +0000
(14:21 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 17 Jul 2012 18:21:25 +0000
(14:21 -0400)
We forgot to index the image array and freed image[0] multiple times
src/compositor.c
patch
|
blob
|
history
diff --git
a/src/compositor.c
b/src/compositor.c
index
c06bc5a
..
4d53a6b
100644
(file)
--- a/
src/compositor.c
+++ b/
src/compositor.c
@@
-779,7
+779,7
@@
weston_surface_attach(struct wl_surface *surface, struct wl_buffer *buffer)
EGL_WAYLAND_BUFFER_COMPONENTS_WL,
&components)) {
for (i = 0; i < es->num_images; i++)
- ec->destroy_image(ec->egl_display, es->images[
0
]);
+ ec->destroy_image(ec->egl_display, es->images[
i
]);
es->num_images = 0;
switch (components) {