fix memory leak in glEndList