Fix OpenGL memory leak with Morph. Closes #535