In memorium: Jesse Higginbotham (1990-2007)

---
* Resource leaks fixed
0.1-prestable
Adam Frisby 2007-04-20 05:50:50 +00:00
parent 258e62679a
commit 9b6a97ae5d
1 changed files with 12 additions and 0 deletions

View File

@ -100,6 +100,9 @@ namespace OpenSim.Terrain
heightmap.map[x, y] = bs.ReadDouble();
}
}
bs.Close();
s.Close();
}
/// <summary>
@ -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)