diff --git a/viz/curses/waterfall.c b/viz/curses/waterfall.c index 7dbadf3..9d0f3dc 100644 --- a/viz/curses/waterfall.c +++ b/viz/curses/waterfall.c @@ -100,12 +100,18 @@ return -1; /* ---------------------------------------------------------------- */ int close_waterfall(WINDOW *wf, int notused) { +int foo; if (NULL == wf) { fprintf(stderr, "%s wf is null\n", __func__); return -1; } +foo = delwin(wf); +if (ERR==foo) { + fprintf(stderr, "%s : err on delwin\n", __func__); + return -1; + } return 0; } /* ---------------------------------------------------------------- */