Fix memory leak in Graphics.createArrayBuffer