From c3838464cc470d4919e8a6b5d70a414bc7fff67b Mon Sep 17 00:00:00 2001 From: amzn-mike <80125227+amzn-mike@users.noreply.github.com> Date: Thu, 11 Nov 2021 14:58:21 -0600 Subject: [PATCH] Blast gem cleanup m_materialLibrary asset on Deactivate to avoid holding onto asset reference after AssetManager has shutdown (#5505) Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> --- Gems/Blast/Code/Source/Components/BlastSystemComponent.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Gems/Blast/Code/Source/Components/BlastSystemComponent.cpp b/Gems/Blast/Code/Source/Components/BlastSystemComponent.cpp index 4c0f15463a..945d4eafb0 100644 --- a/Gems/Blast/Code/Source/Components/BlastSystemComponent.cpp +++ b/Gems/Blast/Code/Source/Components/BlastSystemComponent.cpp @@ -151,6 +151,8 @@ namespace Blast SaveConfiguration(); DeactivatePhysics(); + m_configuration.m_materialLibrary.Release(); + m_assetHandlers.clear(); };