* Properly dispose of the reader after readAttachments() has finished with it in the Mysql User data manager
parent
9650632cd1
commit
9e6b38078a
|
@ -660,13 +660,12 @@ namespace OpenSim.Data.MySQL
|
|||
return appearance;
|
||||
}
|
||||
|
||||
|
||||
// Read attachment list from data reader
|
||||
public Hashtable readAttachments(IDataReader r)
|
||||
{
|
||||
Hashtable ret = new Hashtable();
|
||||
|
||||
while(r.Read())
|
||||
while (r.Read())
|
||||
{
|
||||
int attachpoint = Convert.ToInt32(r["attachpoint"]);
|
||||
if(ret.ContainsKey(attachpoint))
|
||||
|
@ -677,6 +676,8 @@ namespace OpenSim.Data.MySQL
|
|||
|
||||
ret.Add(attachpoint, item);
|
||||
}
|
||||
|
||||
r.Close();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue