diff options
author | Tleiades Hax | 2007-11-01 21:38:41 +0000 |
---|---|---|
committer | Tleiades Hax | 2007-11-01 21:38:41 +0000 |
commit | 317ef312bd69d99e712c5650073931532b9ccd9f (patch) | |
tree | 22c663df04060fced5e08135bf28b878dc1d973f /OpenSim/Framework/Data.MySQL | |
parent | (no commit message) (diff) | |
download | opensim-SC_OLD-317ef312bd69d99e712c5650073931532b9ccd9f.zip opensim-SC_OLD-317ef312bd69d99e712c5650073931532b9ccd9f.tar.gz opensim-SC_OLD-317ef312bd69d99e712c5650073931532b9ccd9f.tar.bz2 opensim-SC_OLD-317ef312bd69d99e712c5650073931532b9ccd9f.tar.xz |
Need to clean up resources when creating/updating assets
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Data.MySQL/MySQLAssetData.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs b/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs index 114538d..aa31d3c 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs | |||
@@ -102,6 +102,7 @@ namespace OpenSim.Framework.Data.MySQL | |||
102 | "VALUES(?id, ?name, ?description, ?assetType, ?invType, ?local, ?temporary, ?data)", | 102 | "VALUES(?id, ?name, ?description, ?assetType, ?invType, ?local, ?temporary, ?data)", |
103 | _dbConnection.Connection); | 103 | _dbConnection.Connection); |
104 | 104 | ||
105 | // need to ensure we dispose | ||
105 | using (cmd) | 106 | using (cmd) |
106 | { | 107 | { |
107 | MySqlParameter p = cmd.Parameters.Add("?id", MySqlDbType.Binary, 16); | 108 | MySqlParameter p = cmd.Parameters.Add("?id", MySqlDbType.Binary, 16); |