diff options
author | UbitUmarov | 2016-11-18 00:12:09 +0000 |
---|---|---|
committer | UbitUmarov | 2016-11-18 00:12:09 +0000 |
commit | ba7904a3a80713f726d434fc82e9a80306372e2c (patch) | |
tree | 0686b2c9132db1a2481957fbf9ad98d660d332c5 /OpenSim/Framework/DoubleDictionaryThreadAbortSafe.cs | |
parent | counting issus safeguard (diff) | |
download | opensim-SC-ba7904a3a80713f726d434fc82e9a80306372e2c.zip opensim-SC-ba7904a3a80713f726d434fc82e9a80306372e2c.tar.gz opensim-SC-ba7904a3a80713f726d434fc82e9a80306372e2c.tar.bz2 opensim-SC-ba7904a3a80713f726d434fc82e9a80306372e2c.tar.xz |
a few more changes on potencial mem issues
Diffstat (limited to 'OpenSim/Framework/DoubleDictionaryThreadAbortSafe.cs')
-rw-r--r-- | OpenSim/Framework/DoubleDictionaryThreadAbortSafe.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Framework/DoubleDictionaryThreadAbortSafe.cs b/OpenSim/Framework/DoubleDictionaryThreadAbortSafe.cs index 9056548..4ff8cba 100644 --- a/OpenSim/Framework/DoubleDictionaryThreadAbortSafe.cs +++ b/OpenSim/Framework/DoubleDictionaryThreadAbortSafe.cs | |||
@@ -55,6 +55,11 @@ namespace OpenSim.Framework | |||
55 | Dictionary2 = new Dictionary<TKey2, TValue>(capacity); | 55 | Dictionary2 = new Dictionary<TKey2, TValue>(capacity); |
56 | } | 56 | } |
57 | 57 | ||
58 | ~DoubleDictionaryThreadAbortSafe() | ||
59 | { | ||
60 | rwLock.Dispose(); | ||
61 | } | ||
62 | |||
58 | public void Add(TKey1 key1, TKey2 key2, TValue value) | 63 | public void Add(TKey1 key1, TKey2 key2, TValue value) |
59 | { | 64 | { |
60 | bool gotLock = false; | 65 | bool gotLock = false; |