diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs index a8cb990f79..e401c39d9e 100755 --- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs +++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs @@ -690,6 +690,12 @@ namespace OpenSim.Region.CoreModules.Asset if (File.GetLastAccessTime(file) < purgeLine) { File.Delete(file); + string id = Path.GetFileName(file); + if(!String.IsNullOrEmpty(id)) + { + lock (weakAssetReferencesLock) + weakAssetReferences.Remove(id); + } } }