Re: [PATCH 2/3] Fix server crash when a client dies during a drag with an icon

2012-03-01 Thread Kristian Hoegsberg
On Thu, Mar 01, 2012 at 02:09:42PM +0200, Ander Conselvan de Oliveira wrote: > If a client dies during a drag that it started using an icon surface, > the server could crash because the icon surface is not valid anymore. > > Fix this by using a destroy listener to reset device->drag_surface to > n

[PATCH 2/3] Fix server crash when a client dies during a drag with an icon

2012-03-01 Thread Ander Conselvan de Oliveira
If a client dies during a drag that it started using an icon surface, the server could crash because the icon surface is not valid anymore. Fix this by using a destroy listener to reset device->drag_surface to nil when the surface is destroyed. --- src/data-device.c| 19 ++-