From aad0ae0215719faaf74445d5833921cb07982012 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 17 Aug 2021 23:05:59 +0200 Subject: svg-flatten: zeroize polygon_sink pointer after use --- svg-flatten/src/svg_doc.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'svg-flatten') diff --git a/svg-flatten/src/svg_doc.cpp b/svg-flatten/src/svg_doc.cpp index 865086f..639d7fa 100644 --- a/svg-flatten/src/svg_doc.cpp +++ b/svg-flatten/src/svg_doc.cpp @@ -400,6 +400,7 @@ void gerbolyze::SVGDocument::render(const RenderSettings &rset, PolygonSink &sin xform2d xf; export_svg_group(xf, rset, root_elem, vb_paths, sel, false, true); scaler.footer(); + polygon_sink = nullptr; } void gerbolyze::SVGDocument::render_to_list(const RenderSettings &rset, vector> &out, const ElementSelector *sel) { -- cgit