diff --git a/src/demo/panelreel.c b/src/demo/panelreel.c index 8f1eaec08..a33d6f725 100644 --- a/src/demo/panelreel.c +++ b/src/demo/panelreel.c @@ -9,7 +9,7 @@ #include #include "demo.h" -#define INITIAL_TABLET_COUNT 2 +#define INITIAL_TABLET_COUNT 4 // FIXME ought just be an unordered_map typedef struct tabletctx { diff --git a/src/demo/xray.c b/src/demo/xray.c index f249058e7..17d4d24b1 100644 --- a/src/demo/xray.c +++ b/src/demo/xray.c @@ -13,6 +13,8 @@ static const char* leg[] = { " 888P ", }; +static struct ncplane* killme; // FIXME + static int perframecb(struct notcurses* nc, struct ncvisual* ncv __attribute__ ((unused))){ static struct ncplane* n = NULL; @@ -30,6 +32,7 @@ perframecb(struct notcurses* nc, struct ncvisual* ncv __attribute__ ((unused))){ if(n == NULL){ return -1; } + killme = n; } ncplane_dim_yx(n, &dimy, &dimx); y = 0; @@ -106,5 +109,6 @@ int xray_demo(struct notcurses* nc){ ncvisual_stream(nc, ncv, &averr, perframecb); ncvisual_destroy(ncv); ncplane_destroy(n); + ncplane_destroy(killme); return 0; }