Cleaned up several memory leaks. There are still leaks
associated with the OpenGL/GLUT dependency, but that dependency
will be replaced with a PNG library, at which time memory
management will be reevaluated.