Skip to content
Snippets Groups Projects
Commit 684af1cd authored by Mark OLESEN's avatar Mark OLESEN
Browse files

WIP: ENH: avoid potential HashPtrTable memory leaks (#1286)

- in previous versions the HashPtrTable<T> used a HashTable<T*> for
  its underlying storage and added additional routines for deallocating
  memory when items were deleted or the table was cleared.

  This generally works well, but direct use of any HashTable<T*> removal
  methods without additional wrapping results in memory leaks.

  The safer means is to use a container with its own memory management.
  For example, HashTable<autoPtr<T>>.

  Any memory cleanup now becomes automatic.
parent aba13e0d
No related branches found
No related tags found
No related merge requests found
Showing
with 460 additions and 372 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment