bschwind / opencascade-rs

Rust bindings to the OpenCascade CAD Kernel
GNU Lesser General Public License v2.1
116 stars 22 forks source link

fix: double free segfault when using Handle_Poly_Triangulation_ctor #159

Closed DSchroer closed 10 months ago

DSchroer commented 10 months ago

Handle_Poly_Triangulation_ctor caused a segfault since the underlying Triangulation would be freed twice. Once when the new handle was dropped and once when the UniquePtr was dropped. By passing ownership to the triangulation this is fixed.