From 9a7aed3ecacf0f9b125b1c321ad6810acffc6c66 Mon Sep 17 00:00:00 2001 From: durswd Date: Sun, 24 Nov 2024 17:12:08 +0900 Subject: [PATCH] Fix memory leak of a procedural model --- Dev/Cpp/Effekseer/Effekseer/Effekseer.ResourceManager.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dev/Cpp/Effekseer/Effekseer/Effekseer.ResourceManager.h b/Dev/Cpp/Effekseer/Effekseer/Effekseer.ResourceManager.h index 550528ae79..2e466168e0 100644 --- a/Dev/Cpp/Effekseer/Effekseer/Effekseer.ResourceManager.h +++ b/Dev/Cpp/Effekseer/Effekseer/Effekseer.ResourceManager.h @@ -211,6 +211,10 @@ class ResourceManager : public ReferenceObject loader_->Ungenerate(resource); } } + else + { + loader_->Ungenerate(resource); + } } }