diff --git a/src/demo/demo.c b/src/demo/demo.c index c91fccc36..6cc5dccdd 100644 --- a/src/demo/demo.c +++ b/src/demo/demo.c @@ -584,13 +584,15 @@ int main(int argc, char** argv){ if(ext_demos(nc, spec, ignore_failures)){ goto err; } - if(hud_destroy()){ // destroy here since notcurses_drop_planes will kill it - goto err; - } - if(fpsgraph_stop(nc)){ - goto err; + if(restart_demos){ + if(hud_destroy()){ // destroy here since notcurses_drop_planes will kill it + goto err; + } + if(fpsgraph_stop(nc)){ + goto err; + } + about_destroy(nc); } - about_destroy(nc); }while(restart_demos); ncmenu_destroy(menu); if(stop_input()){