From b95a46bf069608728f1e54322cc067610bc1e230 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Fri, 27 Jun 2008 15:03:11 -0400 Subject: 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 --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 65af748..240fe2a 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); } -- cgit