add a missing dispose

melanie
UbitUmarov 2016-11-17 17:37:22 +00:00
parent 2db22bf064
commit 8599a9a1ca
1 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,13 @@ namespace OpenSim.Framework
/// </value>
private volatile System.Threading.ReaderWriterLockSlim m_itemLock = new System.Threading.ReaderWriterLockSlim();
~TaskInventoryDictionary()
{
m_itemLock.Dispose();
m_itemLock = null;
}
/// <summary>
/// Are we readlocked by the calling thread?
/// </summary>