From 4d9665d943814475cd09ede27abd78314f7e716f Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sat, 20 Feb 2021 18:11:19 +0000 Subject: [PATCH] Fixes Descriptor pool is not being freed #155 --- src/Algorithm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Algorithm.cpp b/src/Algorithm.cpp index 48968b232..528e86058 100644 --- a/src/Algorithm.cpp +++ b/src/Algorithm.cpp @@ -149,6 +149,7 @@ Algorithm::createParameters(std::vector>& tensorParams) this->mDescriptorPool = std::make_shared(); this->mDevice->createDescriptorPool( &descriptorPoolInfo, nullptr, this->mDescriptorPool.get()); + this->mFreeDescriptorPool = true; std::vector descriptorSetBindings; for (size_t i = 0; i < tensorParams.size(); i++) {