diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-02-07 09:56:15 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-02-08 15:26:05 -0500 |
commit | eff9c0d2ead5076ca888fc7df9a0430804b2e650 (patch) | |
tree | 3bf80f468c78c548e5695fe91c3710d21b54d38d | |
parent | f673994dc58d0c1f9deee036f362e352522dd117 (diff) | |
download | weston-eff9c0d2ead5076ca888fc7df9a0430804b2e650.tar.gz |
compositor-wayland: Destroy wl_callback in callback function
-rw-r--r-- | src/compositor-wayland.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index 4fa9df1c..f6b16f87 100644 --- a/src/compositor-wayland.c +++ b/src/compositor-wayland.c @@ -177,10 +177,11 @@ wayland_output_prepare_render(struct weston_output *output_base) } static void -frame_done(void *data, struct wl_callback *wl_callback, uint32_t time) +frame_done(void *data, struct wl_callback *callback, uint32_t time) { struct weston_output *output = data; + wl_callback_destroy(callback); weston_output_finish_frame(output, time); } |