aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Framework/Data.MySQL/MySQLAssetData.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs b/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs
index 38d0a8f..19ae115 100644
--- a/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs
+++ b/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs
@@ -91,6 +91,8 @@ namespace OpenSim.Framework.Data.MySQL
91 asset.Name = (string)dbReader["name"]; 91 asset.Name = (string)dbReader["name"];
92 asset.Type = (sbyte)dbReader["assetType"]; 92 asset.Type = (sbyte)dbReader["assetType"];
93 } 93 }
94 dbReader.Close();
95 cmd.Dispose();
94 } 96 }
95 } 97 }
96 catch (Exception) 98 catch (Exception)
@@ -122,6 +124,7 @@ namespace OpenSim.Framework.Data.MySQL
122 cmd.Parameters.AddWithValue("?temporary", asset.Temporary); 124 cmd.Parameters.AddWithValue("?temporary", asset.Temporary);
123 cmd.Parameters.AddWithValue("?data", asset.Data); 125 cmd.Parameters.AddWithValue("?data", asset.Data);
124 cmd.ExecuteNonQuery(); 126 cmd.ExecuteNonQuery();
127 cmd.Dispose();
125 } 128 }
126 } 129 }
127 130