mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-26 02:58:43 +02:00
Reset LazyInit#m_Initializer once not needed anymore
... to save memory. refs #7752
This commit is contained in:
parent
63a6584ccb
commit
fbc2184a37
@ -55,6 +55,7 @@ public:
|
||||
if (ptr == nullptr) {
|
||||
ptr = new T(m_Initializer());
|
||||
m_Underlying.store(ptr, std::memory_order_release);
|
||||
m_Initializer = decltype(m_Initializer)();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user