Simplified the memory deallocation in the SVG converter.