From 11f64668a91259b876d6b6bccd902f875531502d Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 1 Sep 2011 09:17:04 +0200 Subject: egl_dri2: Destroy callback in release_pending_buffer --- src/egl/drivers/dri2/platform_wayland.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index f5ede191ce6..ff641ee2b27 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -309,6 +309,8 @@ dri2_release_pending_buffer(void *data, dri2_dpy->dri2->releaseBuffer(dri2_dpy->dri_screen, dri2_surf->pending_buffer); dri2_surf->pending_buffer = NULL; + + wl_callback_destroy(callback); } static const struct wl_callback_listener release_buffer_listener = { -- cgit v1.2.3