[mutter/wayland] wayland: Check for launcher before freeing it



commit 9567fa9c6aebb7c936b7a350503c800a652a2453
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Jan 31 18:51:45 2014 -0500

    wayland: Check for launcher before freeing it
    
    This prevents a segfault on shutdown.

 src/wayland/meta-wayland.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index b2bec85..39eedc7 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -760,7 +760,9 @@ meta_wayland_finalize (void)
   compositor = meta_wayland_compositor_get_default ();
 
   meta_xwayland_stop (compositor);
-  meta_launcher_free (compositor->launcher);
+
+  if (compositor->launcher)
+    meta_launcher_free (compositor->launcher);
 }
 
 MetaLauncher *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]