Skip to content

Commit 9204a2a

Browse files
committed
Critical leak fix
1 parent cdd45a5 commit 9204a2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/Thing.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ namespace Langulus::Entity
211211
// the Units were created on the stack.
212212
// If they still have owners, they will attempt to Decouple in
213213
// A::Unit::~Unit from already destroyed mUnitsList/Ambiguous
214+
mUnitsAmbiguous.Reset();
214215
for (auto& unit : mUnitsList) {
215216
ENTITY_VERBOSE_SELF(
216217
"Tearing off unit ", unit, " at ", unit->GetReferences(), " uses...");

0 commit comments

Comments
 (0)