From cd103218198b66ee0680725b71329c7ce4a76502 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 21 Feb 2021 16:26:32 -0500 Subject: [PATCH] zoo: clean up central plane #1353 --- src/demo/zoo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/demo/zoo.c b/src/demo/zoo.c index 3a9f70913..6c6cfbb41 100644 --- a/src/demo/zoo.c +++ b/src/demo/zoo.c @@ -367,7 +367,7 @@ mselector_run(struct notcurses* nc, struct ncplane* p, struct ncmultiselector* m return run_out_text(p, text, &textpos, &iterdelay); } -// creates an ncreader, ncselector, and ncmultiselector, and moves them into +// creates a plane, an ncselector, and a ncmultiselector, and moves them into // place. the latter two are then faded out. all three are then destroyed. static int reader_demo(struct notcurses* nc){ @@ -379,7 +379,6 @@ reader_demo(struct notcurses* nc){ const int x = ncplane_align(std, NCALIGN_CENTER, READER_COLS); struct ncselector* selector = NULL; struct ncmultiselector* mselector = NULL; - struct ncreader* reader = NULL; struct ncplane_options nopts = { .y = dimy, .x = x, @@ -423,7 +422,7 @@ reader_demo(struct notcurses* nc){ done: ncselector_destroy(selector, NULL); ncmultiselector_destroy(mselector); - ncreader_destroy(reader, NULL); + ncplane_destroy(rp); return ret; }