Skip to content

Fix for singletons utility.

David Thompson requested to merge dcthomp/token:destructor-order into master

The Singletons TypeContainer instance was calling the token::Token constructor inside finalizer methods after the token::Manager instance had been destroyed. Since the Token constructor attempts to store the input string in the manager, this could cause segfaults at exit. Instead, provide a new method to compute key hashes that does not add the input string to the token::Manager and call those methods when erasing keys from the type-container.

Edited by David Thompson

Merge request reports

Loading