Fix memory leak in ErrorCache

Review Request #110897 - Created June 8, 2013 and submitted - Latest diff uploaded

Information
Simeon Bird
soprano
2.9
269442, 320123
Reviewers
soprano
vhanda
    Soprano::Error::ErrorCache stores a QHash <QThread*, Error>
    giving the last error in each thread.
    
    Change the implementation so clearError() calls remove(), instead
    of setting the error to a default value. This prevents the hash
    growing endlessly. It is still possible for error values to leak,
    but only when someone forgets to call clearError() before a thread
     finishes (and only when an actual error occurs).
    
    BUG:320123
    REVIEW: 110897

Compiled, ran
Loading...