mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
workaround potencial memory leak
This commit is contained in:
@@ -1428,6 +1428,10 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||
|
||||
mapTexture.Save(exportPath, ImageFormat.Jpeg);
|
||||
|
||||
g.Dispose();
|
||||
mapTexture.Dispose();
|
||||
sea.Dispose();
|
||||
|
||||
m_log.InfoFormat(
|
||||
"[WORLD MAP]: Successfully exported world map for {0} to {1}",
|
||||
m_scene.RegionInfo.RegionName, exportPath);
|
||||
|
||||
Reference in New Issue
Block a user