mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-04 20:20:20 +01:00
compositor-wayland: Destroy wl_callback in callback function
This commit is contained in:
parent
eb764841a5
commit
cdd61d0168
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue