From 9b6a97ae5d932362bd8b84bbdaa72174507e6a5b Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 20 Apr 2007 05:50:50 +0000 Subject: In memorium: Jesse Higginbotham (1990-2007) --- * Resource leaks fixed --- OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 heightmap.map[x, y] = bs.ReadDouble(); } } + + bs.Close(); + s.Close(); } /// @@ -120,6 +123,9 @@ namespace OpenSim.Terrain heightmap.map[x, y] = (double)bs.ReadSingle(); } } + + bs.Close(); + s.Close(); } public void writeToFileF64(string filename) @@ -136,6 +142,9 @@ namespace OpenSim.Terrain bs.Write(heightmap.get(x,y)); } } + + bs.Close(); + s.Close(); } public void writeToFileF32(string filename) @@ -152,6 +161,9 @@ namespace OpenSim.Terrain bs.Write((float)heightmap.get(x, y)); } } + + bs.Close(); + s.Close(); } public void setSeed(int val) -- cgit v1.1