wayland: Check for launcher before freeing it

This prevents a segfault on shutdown.
This commit is contained in:
Jasper St. Pierre 2014-01-31 18:51:45 -05:00
parent 7a8de0c0af
commit 9567fa9c6a

View File

@ -760,6 +760,8 @@ meta_wayland_finalize (void)
compositor = meta_wayland_compositor_get_default ();
meta_xwayland_stop (compositor);
if (compositor->launcher)
meta_launcher_free (compositor->launcher);
}