From 39e92adaf2b34899ee2b9e606ae81f2288243bc6 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 22 Aug 2016 08:12:32 +0100 Subject: [PATCH] workaround potencial memory leak --- OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs index 959829cf69..88ce305096 100644 --- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs +++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs @@ -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);