workaround potencial memory leak

LSLKeyTest
UbitUmarov 2016-08-22 08:12:32 +01:00
parent 9229d5a324
commit 39e92adaf2
1 changed files with 4 additions and 0 deletions

View File

@ -1428,6 +1428,10 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
mapTexture.Save(exportPath, ImageFormat.Jpeg); mapTexture.Save(exportPath, ImageFormat.Jpeg);
g.Dispose();
mapTexture.Dispose();
sea.Dispose();
m_log.InfoFormat( m_log.InfoFormat(
"[WORLD MAP]: Successfully exported world map for {0} to {1}", "[WORLD MAP]: Successfully exported world map for {0} to {1}",
m_scene.RegionInfo.RegionName, exportPath); m_scene.RegionInfo.RegionName, exportPath);