ANTsX / ANTsPy

A fast medical imaging analysis library in Python with algorithms for registration, segmentation, and more.
https://antspyx.readthedocs.io
Apache License 2.0
648 stars 164 forks source link

WIP: Fix nanobind memory leaks #734

Closed cookpa closed 1 week ago

cookpa commented 1 week ago

Need to add destructor for memory allocated with new in the wrap function

coveralls commented 1 week ago

Coverage Status

coverage: 85.341%. remained the same when pulling 142af47b11efc21ea32612595909493ba820d60e on cookpa:nb_destruct into 637912bcebac08328a3d4872e064489c29254a96 on ANTsX:master.

cookpa commented 1 week ago

I think this fixes the similarity memory leak from #117 that resurfaced after the switch to nanobind.