diff --git a/Dalamud/Interface/Internal/TextureManager.cs b/Dalamud/Interface/Internal/TextureManager.cs index 983ae9963..1648f1961 100644 --- a/Dalamud/Interface/Internal/TextureManager.cs +++ b/Dalamud/Interface/Internal/TextureManager.cs @@ -1,4 +1,4 @@ -using System; +using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.IO; @@ -485,17 +485,17 @@ internal class TextureManager : IDisposable, IServiceType, ITextureSubstitutionP #pragma warning disable SA1015 [ResolveVia] #pragma warning restore SA1015 -internal class TextureManagerPluginScoped : ITextureProvider, IServiceType, IDisposable +internal class TextureProviderPluginScoped : ITextureProvider, IServiceType, IDisposable { private readonly TextureManager textureManager; - private readonly List trackedTextures = new(); + private readonly ConcurrentBag trackedTextures = new(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// TextureManager instance. - public TextureManagerPluginScoped(TextureManager textureManager) + public TextureProviderPluginScoped(TextureManager textureManager) { this.textureManager = textureManager; }