From: Ray Strode Date: Fri, 27 Jun 2008 19:03:11 +0000 (-0400) Subject: don't require window to be around at quit time X-Git-Tag: 0.5.0~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b95a46bf069608728f1e54322cc067610bc1e230;p=thirdparty%2Fplymouth.git don't require window to be around at quit time It's created on show-splash now, so it may not exist at quit time --- diff --git a/src/main.c b/src/main.c index 65af7483..240fe2a0 100644 --- a/src/main.c +++ b/src/main.c @@ -199,8 +199,8 @@ on_quit (state_t *state) ply_trace ("hiding splash"); if (state->boot_splash != NULL) ply_boot_splash_hide (state->boot_splash); - - ply_window_set_mode (state->window, PLY_WINDOW_MODE_TEXT); + if (state->window != NULL) + ply_window_set_mode (state->window, PLY_WINDOW_MODE_TEXT); ply_trace ("exiting event loop"); ply_event_loop_exit (state->loop, 0); }