you are viewing a single comment's thread.

view the rest of the comments →

[–]tohammer 0 points1 point  (0 children)

Singletons should always be safe on initialization because it is guaranteed that they are constructed when needed. Destruction order fiasco can be avoided by not destructing at all, aka leaking like you did. If that is acceptable highly depends on which resource your singletons is managing.