]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
don't require window to be around at quit time
authorRay Strode <rstrode@redhat.com>
Fri, 27 Jun 2008 19:03:11 +0000 (15:03 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 27 Jun 2008 19:03:11 +0000 (15:03 -0400)
It's created on show-splash now, so it may not exist at quit time

src/main.c

index 65af7483f151eb16b74c79a97a867ca77aa104a2..240fe2a0da02758adacd59eeebe1efc561410f9e 100644 (file)
@@ -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);
 }