summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-06-19 14:41:27 -0400
committerRay Strode <rstrode@redhat.com>2008-06-19 14:41:27 -0400
commit4f7a0dbfac56dba774e01458927183e6f3067534 (patch)
treebb96fc371c6db4d6811abc22551ade37fae8f25f
parent36e3dd8abe299f1d8a4e8c40939014c12f8e0381 (diff)
downloadplymouth-4f7a0dbfac56dba774e01458927183e6f3067534.tar.gz
plymouth-4f7a0dbfac56dba774e01458927183e6f3067534.tar.xz
plymouth-4f7a0dbfac56dba774e01458927183e6f3067534.zip
Don't unwatch a signal if there is no loop
-rw-r--r--src/libplybootsplash/ply-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libplybootsplash/ply-window.c b/src/libplybootsplash/ply-window.c
index 48dcb14..3b32bf1 100644
--- a/src/libplybootsplash/ply-window.c
+++ b/src/libplybootsplash/ply-window.c
@@ -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);