compositor-wayland: Destroy wl_callback in callback function

dev
Kristian Høgsberg 13 years ago
parent eb764841a5
commit cdd61d0168
  1. 3
      src/compositor-wayland.c

@ -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…
Cancel
Save