summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--progs/demos/tunnel2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/demos/tunnel2.c b/progs/demos/tunnel2.c
index 75a199af5d..f4171a8346 100644
--- a/progs/demos/tunnel2.c
+++ b/progs/demos/tunnel2.c
@@ -205,6 +205,8 @@ key(unsigned char k, int x, int y)
{
switch (k) {
case 27:
+ glutDestroyWindow(channel[0]);
+ glutDestroyWindow(channel[1]);
exit(0);
break;