This commit is contained in:
parent
430c44ca41
commit
fbe393828c
@ -263,6 +263,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_CountDisposed++;
|
_CountDisposed++;
|
||||||
_Disposed = true;
|
_Disposed = true;
|
||||||
RemoveFromCache(this);
|
RemoveFromCache(this);
|
||||||
|
_Content = null; // to clear content from memory
|
||||||
|
_Config = null; // to clear config from memory
|
||||||
if (!_CacheByPrimaryKey.ContainsKey(ImageID.ToString())) return;
|
if (!_CacheByPrimaryKey.ContainsKey(ImageID.ToString())) return;
|
||||||
List<ROImageInfo> listROImageInfo = _CacheByPrimaryKey[ImageID.ToString()]; // Get the list of items
|
List<ROImageInfo> listROImageInfo = _CacheByPrimaryKey[ImageID.ToString()]; // Get the list of items
|
||||||
while (listROImageInfo.Contains(this)) listROImageInfo.Remove(this); // Remove the item from the list
|
while (listROImageInfo.Contains(this)) listROImageInfo.Remove(this); // Remove the item from the list
|
||||||
|
@ -72,6 +72,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
foreach (ROImageInfo tmp in this)
|
foreach (ROImageInfo tmp in this)
|
||||||
{
|
{
|
||||||
tmp.Changed -= new ROImageInfoEvent(tmp_Changed);
|
tmp.Changed -= new ROImageInfoEvent(tmp_Changed);
|
||||||
|
tmp.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
x
Reference in New Issue
Block a user