From 7c530728032c16e3f8952e50482794a4da1cd98e Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 30 Apr 2021 12:29:15 -0400 Subject: [PATCH] [xray] clean up last sprixel plane --- src/demo/xray.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/demo/xray.c b/src/demo/xray.c index 9027eaa4a..a6b46eeaa 100644 --- a/src/demo/xray.c +++ b/src/demo/xray.c @@ -182,6 +182,7 @@ int xray_demo(struct notcurses* nc){ marsh.ncv = ncv; marsh.next_frame = 0; marsh.last_frame_rendered = -1; + marsh.lplane = NULL; if(pthread_create(&tid1, NULL, xray_thread, NULL)){ ncvisual_destroy(ncv); ncplane_destroy(slider); @@ -195,6 +196,7 @@ int xray_demo(struct notcurses* nc){ } // FIXME need wake them more reliably int ret = pthread_join(tid1, NULL) | pthread_join(tid2, NULL); + ncplane_destroy(marsh.lplane); ncvisual_destroy(ncv); ncplane_destroy(slider); return ret;