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:
09d65d0
)
compositor: fix destroy_frame_callback()
author
Pekka Paalanen
<ppaalanen@gmail.com>
Tue, 15 Nov 2011 09:45:42 +0000
(11:45 +0200)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 15 Nov 2011 14:06:09 +0000
(09:06 -0500)
Pass the correct pointer to free().
This is just a cosmetic change, because 'resource' happens to be the
first member in wlsc_frame_callback.
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
27d9834
..
923c93e
100644
(file)
--- a/
compositor/compositor.c
+++ b/
compositor/compositor.c
@@
-1133,7
+1133,7
@@
destroy_frame_callback(struct wl_resource *resource)
struct wlsc_frame_callback *cb = resource->data;
wl_list_remove(&cb->link);
- free(
resource
);
+ free(
cb
);
}
static void