Fix deadlock in Debug builds on object dtor

This commit is contained in:
Wojtek Figat
2025-07-03 20:32:12 +02:00
parent 056fea9a8c
commit da08be42b4

View File

@@ -154,7 +154,7 @@ void ObjectsRemoval::Dispose()
Object::~Object()
{
#if BUILD_DEBUG
#if BUILD_DEBUG && 0
// Prevent removing object that is still reverenced by the removal service
ASSERT(!ObjectsRemovalService::IsInPool(this));
#endif