(OgvAudio.TryOpen): don't dispose of intermediate stream.

This commit is contained in:
morkt 2015-06-27 14:30:20 +04:00
parent 781ad04b95
commit 128f1f1477

View File

@ -52,15 +52,8 @@ namespace GameRes.Formats.ShiinaRio
return null;
var input = new StreamRegion (file, file.Position);
try
{
return new OggInput (input);
}
catch
{
input.Dispose();
throw;
}
return new OggInput (input);
// input is left undisposed in case of exception.
}
}
}