Don't unwatch a signal if there is no loop

This commit is contained in:
Ray Strode 2008-06-19 14:41:27 -04:00
parent 36e3dd8abe
commit 4f7a0dbfac

View 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);