[PATCH 3/4] compositor: fix destroy_frame_callback()
Pekka Paalanen
ppaalanen at gmail.com
Tue Nov 15 01:45:42 PST 2011
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 at gmail.com>
---
compositor/compositor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/compositor/compositor.c b/compositor/compositor.c
index 27d9834..923c93e 100644
--- 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
--
1.7.3.4
More information about the wayland-devel
mailing list