summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-06-27 15:03:11 -0400
committerRay Strode <rstrode@redhat.com>2008-06-27 15:03:11 -0400
commitb95a46bf069608728f1e54322cc067610bc1e230 (patch)
treed354b45edf3ac160ffd721e84a01cee80d295c20
parentc46f2a10a707f3386d17aec9da0ab304615f8230 (diff)
downloadplymouth-b95a46bf069608728f1e54322cc067610bc1e230.tar.gz
plymouth-b95a46bf069608728f1e54322cc067610bc1e230.tar.xz
plymouth-b95a46bf069608728f1e54322cc067610bc1e230.zip
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
-rw-r--r--src/main.c4
1 files 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);
}