aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLManager.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-08-18 21:18:59 +0000
committerJustin Clarke Casey2008-08-18 21:18:59 +0000
commit9e6b38078a700affa3ed40fc81f9c04f70bb93b7 (patch)
tree3106c436f9535162ae82a200ff4b4fecd5f35911 /OpenSim/Data/MySQL/MySQLManager.cs
parent* It appears that sometimes some IClientAPI reference is not being released, ... (diff)
downloadopensim-SC_OLD-9e6b38078a700affa3ed40fc81f9c04f70bb93b7.zip
opensim-SC_OLD-9e6b38078a700affa3ed40fc81f9c04f70bb93b7.tar.gz
opensim-SC_OLD-9e6b38078a700affa3ed40fc81f9c04f70bb93b7.tar.bz2
opensim-SC_OLD-9e6b38078a700affa3ed40fc81f9c04f70bb93b7.tar.xz
* Properly dispose of the reader after readAttachments() has finished with it in the Mysql User data manager
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLManager.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLManager.cs b/OpenSim/Data/MySQL/MySQLManager.cs
index 3a62ec2..9f50c9f 100644
--- a/OpenSim/Data/MySQL/MySQLManager.cs
+++ b/OpenSim/Data/MySQL/MySQLManager.cs
@@ -660,13 +660,12 @@ namespace OpenSim.Data.MySQL
660 return appearance; 660 return appearance;
661 } 661 }
662 662
663
664 // Read attachment list from data reader 663 // Read attachment list from data reader
665 public Hashtable readAttachments(IDataReader r) 664 public Hashtable readAttachments(IDataReader r)
666 { 665 {
667 Hashtable ret = new Hashtable(); 666 Hashtable ret = new Hashtable();
668 667
669 while(r.Read()) 668 while (r.Read())
670 { 669 {
671 int attachpoint = Convert.ToInt32(r["attachpoint"]); 670 int attachpoint = Convert.ToInt32(r["attachpoint"]);
672 if(ret.ContainsKey(attachpoint)) 671 if(ret.ContainsKey(attachpoint))
@@ -677,6 +676,8 @@ namespace OpenSim.Data.MySQL
677 676
678 ret.Add(attachpoint, item); 677 ret.Add(attachpoint, item);
679 } 678 }
679
680 r.Close();
680 681
681 return ret; 682 return ret;
682 } 683 }