xserver: check whether pointer exists when exiting
authorTiago Vignatti <tiago.vignatti@intel.com>
Thu, 8 Sep 2011 11:46:06 +0000 (04:46 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 8 Sep 2011 22:27:31 +0000 (18:27 -0400)
commit37f27d59cd32afcdaab4d5eb079ca4a8f17f4721
tree72848138801d56d950e92ce24d82b2141c4b7b04
parent7e69000556ab2b542d5ab51c1e60a1d71563dd59
xserver: check whether pointer exists when exiting

At initialization, if it fails in binding the socket or creating the
lock file then the pointer will be already freed and will result a
segfault when quiting the compositor.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
compositor/xserver-launcher.c