Skip to content

Commit

Permalink
Valgrind found three memory leaks in 'testcurs'. Two apply to the ups…
Browse files Browse the repository at this point in the history
…tream (wmcbrine) version as well.
  • Loading branch information
Bill-Gray committed Feb 7, 2020
1 parent 9b80551 commit 20bd12d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demos/testcurs.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ int main(int argc, char *argv[])

delwin(win);
endwin();
delscreen( SP);

return 0;
}
Expand Down Expand Up @@ -502,7 +503,10 @@ void inputTest(WINDOW *win)
#endif
wclear(win);
if( c == 1)
{
delwin( subWin);
return;
}
mvwaddstr(win, 2, 1, "Press some keys for 5 seconds");
mvwaddstr(win, 1, 1, "Pressing ^C should do nothing");
wrefresh(win);
Expand Down Expand Up @@ -807,6 +811,7 @@ void padTest(WINDOW *dummy)
spad = subpad(pad, 12, 25, 7, 52);
mvwaddstr(spad, 2, 2, "This is a new subpad");
box(spad, 0, 0);
delwin(spad);
prefresh(pad, 0, 0, 0, 0, 15, 75);
keypad(pad, TRUE);
raw();
Expand Down

0 comments on commit 20bd12d

Please sign in to comment.