Fix memory leak on SVG buffer.