Commit b31ad73f authored by Tiago Vignatti's avatar Tiago Vignatti Committed by Kristian Høgsberg
Browse files

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: default avatarTiago Vignatti <tiago.vignatti@intel.com>
parent 0e46e2b3
......@@ -815,6 +815,9 @@ wlsc_xserver_destroy(struct wlsc_compositor *compositor)
{
struct wlsc_xserver *wxs = compositor->wxs;
if (!wxs)
return;
if (wxs->loop)
wlsc_xserver_shutdown(wxs);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment