diff options
author | Adam Frisby | 2007-04-20 05:50:50 +0000 |
---|---|---|
committer | Adam Frisby | 2007-04-20 05:50:50 +0000 |
commit | 9b6a97ae5d932362bd8b84bbdaa72174507e6a5b (patch) | |
tree | ae486b3816b405cf31d8f96190fb24879958d1af /OpenSim.Terrain.BasicTerrain | |
parent | Console: (diff) | |
download | opensim-SC_OLD-9b6a97ae5d932362bd8b84bbdaa72174507e6a5b.zip opensim-SC_OLD-9b6a97ae5d932362bd8b84bbdaa72174507e6a5b.tar.gz opensim-SC_OLD-9b6a97ae5d932362bd8b84bbdaa72174507e6a5b.tar.bz2 opensim-SC_OLD-9b6a97ae5d932362bd8b84bbdaa72174507e6a5b.tar.xz |
In memorium: Jesse Higginbotham (1990-2007)
---
* Resource leaks fixed
Diffstat (limited to 'OpenSim.Terrain.BasicTerrain')
-rw-r--r-- | OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs index 080671b..65ad3ac 100644 --- a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | |||
@@ -100,6 +100,9 @@ namespace OpenSim.Terrain | |||
100 | heightmap.map[x, y] = bs.ReadDouble(); | 100 | heightmap.map[x, y] = bs.ReadDouble(); |
101 | } | 101 | } |
102 | } | 102 | } |
103 | |||
104 | bs.Close(); | ||
105 | s.Close(); | ||
103 | } | 106 | } |
104 | 107 | ||
105 | /// <summary> | 108 | /// <summary> |
@@ -120,6 +123,9 @@ namespace OpenSim.Terrain | |||
120 | heightmap.map[x, y] = (double)bs.ReadSingle(); | 123 | heightmap.map[x, y] = (double)bs.ReadSingle(); |
121 | } | 124 | } |
122 | } | 125 | } |
126 | |||
127 | bs.Close(); | ||
128 | s.Close(); | ||
123 | } | 129 | } |
124 | 130 | ||
125 | public void writeToFileF64(string filename) | 131 | public void writeToFileF64(string filename) |
@@ -136,6 +142,9 @@ namespace OpenSim.Terrain | |||
136 | bs.Write(heightmap.get(x,y)); | 142 | bs.Write(heightmap.get(x,y)); |
137 | } | 143 | } |
138 | } | 144 | } |
145 | |||
146 | bs.Close(); | ||
147 | s.Close(); | ||
139 | } | 148 | } |
140 | 149 | ||
141 | public void writeToFileF32(string filename) | 150 | public void writeToFileF32(string filename) |
@@ -152,6 +161,9 @@ namespace OpenSim.Terrain | |||
152 | bs.Write((float)heightmap.get(x, y)); | 161 | bs.Write((float)heightmap.get(x, y)); |
153 | } | 162 | } |
154 | } | 163 | } |
164 | |||
165 | bs.Close(); | ||
166 | s.Close(); | ||
155 | } | 167 | } |
156 | 168 | ||
157 | public void setSeed(int val) | 169 | public void setSeed(int val) |