# HG changeset patch # User John Tsiombikas # Date 1346278523 -10800 # Node ID 060a440405778506fa30b12dfbd4e3105dcd0085 # Parent 862461b686f46d3ae8c681a2e6af8c41cf70f9cb forgot to set it up so cleanup is called on exit diff -r 862461b686f4 -r 060a44040577 prototype/src/main.cc --- a/prototype/src/main.cc Wed Aug 29 03:22:36 2012 +0300 +++ b/prototype/src/main.cc Thu Aug 30 01:15:23 2012 +0300 @@ -63,6 +63,7 @@ if(!init(cfg.width, cfg.height)) { return 1; } + atexit(cleanup); glutMainLoop(); }