Need to clean up resources when creating/updating assets

afrisby
Tleiades Hax 2007-11-01 21:38:41 +00:00
parent cb2ae6eaed
commit 317ef312bd
1 changed files with 1 additions and 0 deletions

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);