diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2019-12-17 15:42:34 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2020-03-25 15:28:17 -0400 |
commit | 31863d833c7b573f3608e3353b9e5f694b611627 (patch) | |
tree | a8bec86d422e2bfdca1a22662e240294c1a50212 /indra/llcommon/llerrorlegacy.h | |
parent | b1477e98f63b151b29d7b1f4f0e916181da7eeb6 (diff) |
DRTVWR-494: Move most LLSingleton cleanup back to destructor
instead of deleteSingleton().
Specifically, clear static SingletonData and remove the instance from the
MasterList in the destructor.
Empirically, some consumers are manually deleting LLSingleton instances,
instead of calling deleteSingleton(). If deleteSingleton() handles cleanup
rather than the destructor, we're left with dangling pointers in the Master
List.
We don't also call cleanupSingleton() from the destructor because only
deleteSingleton() promises to call cleanupSingleton(). Hopefully whoever is
directly deleting an LLSingleton subclass instance isn't relying on
cleanupSingleton().
Diffstat (limited to 'indra/llcommon/llerrorlegacy.h')
0 files changed, 0 insertions, 0 deletions