From db87abfb194fc1bf4ae75d11794cc5fab4d382c1 Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Fri, 26 May 2006 16:51:03 +0000 Subject: Fix a crash on exit/logout from assuming a compositor would always exist 2006-05-26 Elijah Newren * src/display.c (meta_display_close): Fix a crash on exit/logout from assuming a compositor would always exist --- src/display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/display.c b/src/display.c index 63147a8b..cf02a9e2 100644 --- a/src/display.c +++ b/src/display.c @@ -900,7 +900,8 @@ meta_display_close (MetaDisplay *display) meta_display_shutdown_keys (display); - meta_compositor_unref (display->compositor); + if (display->compositor) + meta_compositor_unref (display->compositor); g_free (display); -- cgit v1.2.1