diff options
author | jaseg <git@jaseg.de> | 2021-08-17 23:05:59 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-08-17 23:05:59 +0200 |
commit | aad0ae0215719faaf74445d5833921cb07982012 (patch) | |
tree | 6187564b7db1dc0ea04ffbff41636c2dcf2e4f5e | |
parent | a084be88494f785a28ad1e79f555150abe33eccf (diff) | |
download | gerbolyze-aad0ae0215719faaf74445d5833921cb07982012.tar.gz gerbolyze-aad0ae0215719faaf74445d5833921cb07982012.tar.bz2 gerbolyze-aad0ae0215719faaf74445d5833921cb07982012.zip |
svg-flatten: zeroize polygon_sink pointer after use
-rw-r--r-- | svg-flatten/src/svg_doc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<pair<Polygon, GerberPolarityToken>> &out, const ElementSelector *sel) { |