aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLManager.cs')
-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 }