Fix bug in PDB destructor 63/4263/1
authorJim Phillips <jim@ks.uiuc.edu>
Thu, 14 Jun 2018 17:20:57 +0000 (12:20 -0500)
committerJim Phillips <jim@ks.uiuc.edu>
Thu, 14 Jun 2018 17:20:57 +0000 (12:20 -0500)
commitfa14f94e438b244256ae07f940208c5f3192728d
tree05b4cafdcd6e13b7a7393133b372ac68d95c439f
parentb8e936518be5d19d2ee51590dba84ddf05bb1da3
Fix bug in PDB destructor

Array of pointers sometimes pointed to independently
allocated elements and sometimes to elements of an array.
Destructor would call delete [] if elements were
contiguous in memory, which could happen by coincidence.
Now independently tracks how data was allocated.

Bug reported on Mac by J.C. Gumbart.

Change-Id: I22c6a2c0a37d208913a73b83cd76098afc412778
src/PDB.C
src/PDB.h