diff --git a/GameRes/ArchiveFormat.cs b/GameRes/ArchiveFormat.cs index b9e5f4e1..0ffd95d3 100644 --- a/GameRes/ArchiveFormat.cs +++ b/GameRes/ArchiveFormat.cs @@ -67,15 +67,7 @@ namespace GameRes public virtual IImageDecoder OpenImage (ArcFile arc, Entry entry) { var input = arc.OpenBinaryEntry (entry); - try - { - return new ImageFormatDecoder (input); - } - catch - { - input.Dispose(); - throw; - } + return ImageFormatDecoder.Create (input); } ///