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:
92a57db
)
Weston: Free allocated cursors array when destroying
author
Yan Wang
<yan.wang@linux.intel.com>
Mon, 28 May 2012 06:07:25 +0000
(14:07 +0800)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 29 May 2012 13:53:42 +0000
(09:53 -0400)
This array is allocated in create_cursors(). It should be freed in
destroy_cursors().
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index
bab5d76
..
0c6f556
100644
(file)
--- a/
clients/window.c
+++ b/
clients/window.c
@@
-661,6
+661,7
@@
static void
destroy_cursors(struct display *display)
{
wl_cursor_theme_destroy(display->cursor_theme);
+ free(display->cursors);
}
struct wl_cursor_image *