Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory leaks due to raw pointers created with 'new'. #159

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

jeffmf
Copy link

@jeffmf jeffmf commented Nov 28, 2024

  1. Removed use of raw pointers and data allocated with new. These result in memory leaks if an exception is thrown or if not explicitly deleted by the pointer's recipient.
  2. AdjancencyMatrix and BVH classes release their own resources. They are move constructable and move assignable, but not copy constructable or copy assignable.
  3. MultiResolutionHierarchy is no longer responsible for deleting adjacency matrix data. Also its move and copy constructors and assignment operators are disabled.

@jeffmf jeffmf marked this pull request as ready for review November 28, 2024 16:55
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.

1 participant