From f5cf181c65293fd9097f63192c09f44b9c82c633 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 11 May 2009 16:08:01 -0600 Subject: trivial: destroy window upon exit --- progs/trivial/tri.c | 1 + 1 file changed, 1 insertion(+) (limited to 'progs/trivial') diff --git a/progs/trivial/tri.c b/progs/trivial/tri.c index d44cb6a9fe..cac3fcb7d9 100644 --- a/progs/trivial/tri.c +++ b/progs/trivial/tri.c @@ -60,6 +60,7 @@ static void Key(unsigned char key, int x, int y) { switch (key) { case 27: + glutDestroyWindow(win); exit(0); default: glutPostRedisplay(); -- cgit v1.2.3