aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-08-17 23:05:59 +0200
committerjaseg <git@jaseg.de>2021-08-17 23:05:59 +0200
commitaad0ae0215719faaf74445d5833921cb07982012 (patch)
tree6187564b7db1dc0ea04ffbff41636c2dcf2e4f5e /svg-flatten
parenta084be88494f785a28ad1e79f555150abe33eccf (diff)
downloadgerbolyze-aad0ae0215719faaf74445d5833921cb07982012.tar.gz
gerbolyze-aad0ae0215719faaf74445d5833921cb07982012.tar.bz2
gerbolyze-aad0ae0215719faaf74445d5833921cb07982012.zip
svg-flatten: zeroize polygon_sink pointer after use
Diffstat (limited to 'svg-flatten')
-rw-r--r--svg-flatten/src/svg_doc.cpp1
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) {