Skip to content

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

Open
jeffmf wants to merge 9 commits intowjakob:masterfrom
Matter-and-Form:gui
Open

Fix memory leaks due to raw pointers created with 'new'.#159
jeffmf wants to merge 9 commits intowjakob:masterfrom
Matter-and-Form:gui

Conversation

@jeffmf
Copy link
Copy Markdown

@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