mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fixed memory issues of BedShapeHintwhen using unions of non-trivial objects
This commit is contained in:
parent
92bdb68e11
commit
e30a17beb3
2 changed files with 16 additions and 3 deletions
|
@ -507,9 +507,7 @@ BedShapeHint::BedShapeHint(const Polyline &bed) {
|
|||
m_type = BedShapes::bsCircle;
|
||||
m_bed.circ = c;
|
||||
} else {
|
||||
if (m_type == BedShapes::bsIrregular)
|
||||
m_bed.polygon.Slic3r::Polyline::~Polyline();
|
||||
|
||||
assert(m_type != BedShapes::bsIrregular);
|
||||
m_type = BedShapes::bsIrregular;
|
||||
::new (&m_bed.polygon) Polyline(bed);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue