From c951d787b797cfdefbad135c20f04b1fca586d25 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 18 Nov 2025 22:25:04 +0300 Subject: [PATCH] fix: ObjectsPool missing destructor call --- src/util/ObjectsPool.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/ObjectsPool.hpp b/src/util/ObjectsPool.hpp index 0dc97fd2..55238959 100644 --- a/src/util/ObjectsPool.hpp +++ b/src/util/ObjectsPool.hpp @@ -39,6 +39,7 @@ namespace util { freeObjects.pop(); new (ptr)T(std::forward(args)...); return std::shared_ptr(reinterpret_cast(ptr), [this](T* ptr) { + ptr->~T(); std::lock_guard lock(mutex); freeObjects.push(ptr); });