compositor-wayland: Destroy wl_callback in callback function

This commit is contained in:
Kristian Høgsberg 2012-02-07 09:56:15 -05:00
parent eb764841a5
commit cdd61d0168

View File

@ -162,10 +162,11 @@ wayland_compositor_init_egl(struct wayland_compositor *c)
}
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);
}