mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Fixed memory leak in is_splittable_object()
This commit is contained in:
@@ -1451,12 +1451,12 @@ bool is_splittable_object(const bool split_part)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
TriangleMeshPtrs meshptrs = volume->mesh.split();
|
TriangleMeshPtrs meshptrs = volume->mesh.split();
|
||||||
if (meshptrs.size() <= 1) {
|
bool splittable = meshptrs.size() > 1;
|
||||||
delete meshptrs.front();
|
for (TriangleMesh* m : meshptrs)
|
||||||
return false;
|
{
|
||||||
|
delete m;
|
||||||
}
|
}
|
||||||
|
return splittable;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void on_btn_split(const bool split_part)
|
void on_btn_split(const bool split_part)
|
||||||
|
|||||||
Reference in New Issue
Block a user