]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Don't unwatch a signal if there is no loop
authorRay Strode <rstrode@redhat.com>
Thu, 19 Jun 2008 18:41:27 +0000 (14:41 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 19 Jun 2008 18:41:27 +0000 (14:41 -0400)
src/libplybootsplash/ply-window.c

index 48dcb14ddc59983ce8120d7b07cf149f3b2574cf..3b32bf159d47d6fe412097df83b65ddedf857766 100644 (file)
@@ -387,7 +387,8 @@ ply_window_close (ply_window_t *window)
       window->tty_fd_watch = NULL;
     }
 
-  ply_event_loop_stop_watching_signal (window->loop, SIGWINCH);
+  if (window->loop != NULL)
+    ply_event_loop_stop_watching_signal (window->loop, SIGWINCH);
 
   ply_window_set_buffered_input (window);