projects
/
profile
/
ivi
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51ce95a
)
window: destroy window surfaces and title
author
Pekka Paalanen
<ppaalanen@gmail.com>
Fri, 16 Dec 2011 08:09:29 +0000
(10:09 +0200)
committer
Pekka Paalanen
<ppaalanen@gmail.com>
Thu, 22 Dec 2011 09:27:51 +0000
(11:27 +0200)
Plugs leaks from struct window in window_destroy().
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index
f0a90a7
..
3f6dafc
100644
(file)
--- a/
clients/window.c
+++ b/
clients/window.c
@@
-997,6
+997,13
@@
window_destroy(struct window *window)
wl_shell_surface_destroy(window->shell_surface);
wl_surface_destroy(window->surface);
wl_list_remove(&window->link);
+
+ if (window->cairo_surface != NULL)
+ cairo_surface_destroy(window->cairo_surface);
+ if (window->pending_surface != NULL)
+ cairo_surface_destroy(window->pending_surface);
+
+ free(window->title);
free(window);
}