From: Kristian Høgsberg Date: Tue, 7 Feb 2012 14:56:15 +0000 (-0500) Subject: compositor-wayland: Destroy wl_callback in callback function X-Git-Tag: 20120702.1049~512 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cdd61d01680a3aa76bec90bf6c71f7151c47ccb9;p=profile%2Fivi%2Fweston.git compositor-wayland: Destroy wl_callback in callback function --- diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index 6eb0cd0..d8bee21 100644 --- a/src/compositor-wayland.c +++ b/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); }