diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs index 6dd8619b..8274ce60 100644 --- a/PCK-Studio/MainForm.cs +++ b/PCK-Studio/MainForm.cs @@ -1224,6 +1224,11 @@ namespace PckStudio PCKFileWriter.Write(ms3, infoPCK, LittleEndianCheckBox.Checked); texturepackInfo.SetData(ms3.ToArray()); + + ms.Dispose(); + ms2.Dispose(); + ms3.Dispose(); + currentPCK.Files.Add(texturepackInfo); }