Need to clean up resources when creating/updating assets

This commit is contained in:
Tleiades Hax
2007-11-01 21:38:41 +00:00
parent cb2ae6eaed
commit 317ef312bd

View File

@@ -102,6 +102,7 @@ namespace OpenSim.Framework.Data.MySQL
"VALUES(?id, ?name, ?description, ?assetType, ?invType, ?local, ?temporary, ?data)",
_dbConnection.Connection);
// need to ensure we dispose
using (cmd)
{
MySqlParameter p = cmd.Parameters.Add("?id", MySqlDbType.Binary, 16);