Skip to content
Snippets Groups Projects

ATLASRECTS-7672 : Manage the memory ownership via unique_ptr to avoid leaks

ATLASRECTS-7672 : Manage the memory ownership via unique_ptr to avoid leaks

We manage ownership using a vector of unique_ptr TParamOwner. So we know things will be cleaned up on exit. We do not need to remember to do loops deleting if an error occurs.

Since the interface called needs a vector of plain ptr we also keep around the tmpInputC But it does not hold owning ptr anymore just "view" of what is in the owning vector.

ping @amete

Edited by Christos Anastopoulos

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading