Re: [Mesa-dev] [PATCH] wayland: Destroy frame callback when destroying surface

2012-10-29 Thread Kristian Høgsberg
On Sun, Oct 28, 2012 at 12:50:12AM +0200, Jonas Ådahl wrote: > If a frame callback is not destroyed when destroying a surface, its > handler function will be invoked if the surface was destroyed after the > callback was requested but before it was invoked, causing a write on > free:ed memory. > >

[Mesa-dev] [PATCH] wayland: Destroy frame callback when destroying surface

2012-10-27 Thread Jonas Ådahl
If a frame callback is not destroyed when destroying a surface, its handler function will be invoked if the surface was destroyed after the callback was requested but before it was invoked, causing a write on free:ed memory. This can happen if eglDestroySurface() is called shortly after eglSwapBuf