Dispose some writers so the file isn't active anymore

This commit is contained in:
KillzXGaming 2019-03-28 21:28:36 -04:00
parent 088f9a00e2
commit e4ccae2c93
4 changed files with 8 additions and 1 deletions

Binary file not shown.

View file

@ -204,6 +204,10 @@ namespace FirstPlugin
}
}
}
writer.Close();
writer.Dispose();
}
}

View file

@ -573,7 +573,8 @@ namespace FirstPlugin
writer.Write(ImageData.Length);
writer.WriteSignature(" XET");
writer.Write(131073);
writer.Close();
writer.Dispose();
}
public override void SetImageData(Bitmap bitmap, int ArrayLevel)

View file

@ -921,6 +921,8 @@ namespace Switch_Toolbox.Library
}
writer.Flush();
writer.Close();
writer.Dispose();
}
private void WriteDX10Header(BinaryDataWriter writer)
{