Fix map.png lock

This commit is contained in:
huwpascoe
2014-10-02 19:14:55 +01:00
parent cb85da6712
commit 488d2d57e0

View File

@@ -265,7 +265,8 @@ namespace OpenRA
Uid = ComputeHash(); Uid = ComputeHash();
if (Container.Exists("map.png")) if (Container.Exists("map.png"))
CustomPreview = new Bitmap(Container.GetContent("map.png")); using (var dataStream = Container.GetContent("map.png"))
CustomPreview = new Bitmap(dataStream);
PostInit(); PostInit();
} }