compositor-wayland: Destroy wl_callback in callback function
This commit is contained in:
parent
eb764841a5
commit
cdd61d0168
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user