First commit to solve most (all ?) memory leaks in OpenGL rendering