aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteUserData.cs
diff options
context:
space:
mode:
authorHomer Horwitz2008-09-18 20:10:09 +0000
committerHomer Horwitz2008-09-18 20:10:09 +0000
commit1c08f46ec3397f4e4fd5897107c0df89bec70d84 (patch)
tree9c6896ead729fcf0f0a9357f4a232ce2ad1d6106 /OpenSim/Data/SQLite/SQLiteUserData.cs
parent* Apply http://opensimulator.org/mantis/view.php?id=2212 (diff)
downloadopensim-SC_OLD-1c08f46ec3397f4e4fd5897107c0df89bec70d84.zip
opensim-SC_OLD-1c08f46ec3397f4e4fd5897107c0df89bec70d84.tar.gz
opensim-SC_OLD-1c08f46ec3397f4e4fd5897107c0df89bec70d84.tar.bz2
opensim-SC_OLD-1c08f46ec3397f4e4fd5897107c0df89bec70d84.tar.xz
- Add Dispose method to IRegionDataStore
- Add necessary dummy Dispose-methods where they are missing - Implement the SQLite Dispose-methods (currently only used for unit tests, in the next commit)
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteUserData.cs')
-rw-r--r--OpenSim/Data/SQLite/SQLiteUserData.cs25
1 files changed, 24 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs
index 2c1e3c3..a238ebf 100644
--- a/OpenSim/Data/SQLite/SQLiteUserData.cs
+++ b/OpenSim/Data/SQLite/SQLiteUserData.cs
@@ -122,7 +122,30 @@ namespace OpenSim.Data.SQLite
122 return; 122 return;
123 } 123 }
124 124
125 public override void Dispose () {} 125 public override void Dispose ()
126 {
127 if(g_conn != null) {
128 g_conn.Close();
129 g_conn = null;
130 }
131 if(ds != null) {
132 ds.Dispose();
133 ds = null;
134 }
135 if(da != null) {
136 da.Dispose();
137 da = null;
138 }
139 if(daf != null) {
140 daf.Dispose();
141 daf = null;
142 }
143 if(dua != null) {
144 dua.Dispose();
145 dua = null;
146 }
147 aplist = null;
148 }
126 149
127 /// <summary> 150 /// <summary>
128 /// see IUserDataPlugin, 151 /// see IUserDataPlugin,