Skip to content

Conversation

@blowekamp
Copy link
Member

@blowekamp blowekamp commented Jul 11, 2025

Remove the manual release of the ITK pointer in the destructor, in favor of a RAII unique_ptr configured to call the UnRegister method at scope exit.

Created a custom deleter object to call ProcessObject::UnRegister when
the unique_pointer exists scope, thus following RAII practices.
@blowekamp blowekamp force-pushed the smart_member_filter branch from 60a1bae to 619a511 Compare July 14, 2025 13:50
@blowekamp blowekamp changed the title Smart member filter Convert to a smart pointer for member. Jul 14, 2025
@blowekamp blowekamp requested review from dave3d and zivy July 14, 2025 15:36
@blowekamp blowekamp marked this pull request as ready for review July 14, 2025 15:36
@blowekamp blowekamp merged commit 8d80658 into SimpleITK:master Jul 14, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants