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:
07753fb
)
compositor: free region members on surface destroy
author
Pekka Paalanen
<ppaalanen@gmail.com>
Tue, 3 Jan 2012 08:23:24 +0000
(10:23 +0200)
committer
Pekka Paalanen
<ppaalanen@gmail.com>
Tue, 3 Jan 2012 08:51:54 +0000
(10:51 +0200)
The two pixman regions of struct wlsc_surface were not being freed
properly.
Fixes some Valgrind errors.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
compositor/compositor.c
patch
|
blob
|
history
diff --git
a/compositor/compositor.c
b/compositor/compositor.c
index
c3211e5
..
d710d5f
100644
(file)
--- a/
compositor/compositor.c
+++ b/
compositor/compositor.c
@@
-367,6
+367,9
@@
destroy_surface(struct wl_resource *resource)
wl_list_remove(&surface->buffer_link);
+ pixman_region32_fini(&surface->damage);
+ pixman_region32_fini(&surface->opaque);
+
free(surface);
}