data-device: Handle source going away instead of ref-counting it
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 3 Jan 2012 19:11:07 +0000 (14:11 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 3 Jan 2012 19:11:18 +0000 (14:11 -0500)
commit82d9ee929b50caf27d44f5d0ccfe5497f07015bb
treed4e5a53a98c566afa20cc8ae1f7110097c844039
parentcb78447a0ea011f0762b95bcb411d0d814ca3816
data-device: Handle source going away instead of ref-counting it

We have to deal with the data source going away.  Even if we have a
reference to the server side data source, we can't do anything if the
client that provided the source went away.  So just NULL the offers
source pointer in the destroy callback for the source.
src/compositor.h
src/data-device.c
src/xserver-launcher.c