From 9204a2a5578aa17ed7b5dbe35bf6f29f984ad2e1 Mon Sep 17 00:00:00 2001 From: Dimo Markov Date: Sun, 20 Oct 2024 10:39:43 +0300 Subject: [PATCH] Critical leak fix --- source/Thing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Thing.cpp b/source/Thing.cpp index 484fbbf..fb09fbd 100644 --- a/source/Thing.cpp +++ b/source/Thing.cpp @@ -211,6 +211,7 @@ namespace Langulus::Entity // the Units were created on the stack. // If they still have owners, they will attempt to Decouple in // A::Unit::~Unit from already destroyed mUnitsList/Ambiguous + mUnitsAmbiguous.Reset(); for (auto& unit : mUnitsList) { ENTITY_VERBOSE_SELF( "Tearing off unit ", unit, " at ", unit->GetReferences(), " uses...");