Hi,
I have the following code
Qt Code:
  1. QHash<Blub, Blab>* firstHash = new QHash..;
  2. QHash<Blub, Blab>* secondHash = new QHash..;
  3. ..
  4. firstHash->unite(*secondHash);
  5. // delete secondHash;
To copy to clipboard, switch view to plain text mode 

When I uncomment the delete, than my application crashes. I assume it's because all elements in the secondHash are deleted and not more available in the firstHash.

Is it save to leave the second Hash undeletet? Wouldn't that be a memory leak?