From: Brian Paul Date: Mon, 11 May 2009 22:08:01 +0000 (-0600) Subject: trivial: destroy window upon exit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5cf181c65293fd9097f63192c09f44b9c82c633;p=mesa.git trivial: destroy window upon exit --- diff --git a/progs/trivial/tri.c b/progs/trivial/tri.c index d44cb6a9fe3..cac3fcb7d9c 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();