Changeset e93dd78


Ignore:
Timestamp:
Jun 18, 2011, 5:09:05 PM (6 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
b14f8cb, a006d475, 0d3c100
Parents:
f0781ba
git-author:
David Benjamin <davidben@mit.edu> (03/08/11 12:48:12)
git-committer:
David Benjamin <davidben@mit.edu> (06/18/11 17:09:05)
Message:
Properly tear down the ncurses screen in tester.c

There's actually a set of valgrind suppressions in ncurses, and there
really isn't API to clean up after initscr. But since we allocate this
SCREEN ourselves, may as well clean it up.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester.c

    r596c8b10 re93dd78  
    3232  char *perlerr;
    3333  int status = 0;
     34  SCREEN *screen;
    3435
    3536  if (argc <= 1) {
     
    4142  wnull = fopen("/dev/null", "w");
    4243  rnull = fopen("/dev/null", "r");
    43   newterm("xterm", wnull, rnull);
     44  screen = newterm("xterm", wnull, rnull);
    4445  /* initialize global structures */
    4546  owl_global_init(&g);
     
    9192  /* probably not necessary, but tear down the screen */
    9293  endwin();
     94  delscreen(screen);
    9395  fclose(rnull);
    9496  fclose(wnull);
Note: See TracChangeset for help on using the changeset viewer.