xlsynth / xlsynth-crate

Rust crate that publishes XLSynth capabilities (wrapping libxlsynth.so/.dylib)
https://crates.io/crates/xlsynth
Apache License 2.0
0 stars 1 forks source link

Rework types; keep an Arc/lock around a Drop-implementing type for Package... #10

Closed cdleary closed 1 month ago

cdleary commented 1 month ago

…so function can prevent its backing package from being deallocated.

Previously we implemented drop on the user-facing IrPackage which did not keep the package alive appropriately when the user held only the IrFunction.