From: Ray Strode Date: Thu, 19 Jun 2008 18:41:27 +0000 (-0400) Subject: Don't unwatch a signal if there is no loop X-Git-Tag: 0.4.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f7a0dbfac56dba774e01458927183e6f3067534;p=thirdparty%2Fplymouth.git Don't unwatch a signal if there is no loop --- diff --git a/src/libplybootsplash/ply-window.c b/src/libplybootsplash/ply-window.c index 48dcb14d..3b32bf15 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);