mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(OgvAudio.TryOpen): don't dispose of intermediate stream.
This commit is contained in:
@@ -52,15 +52,8 @@ namespace GameRes.Formats.ShiinaRio
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
var input = new StreamRegion (file, file.Position);
|
var input = new StreamRegion (file, file.Position);
|
||||||
try
|
return new OggInput (input);
|
||||||
{
|
// input is left undisposed in case of exception.
|
||||||
return new OggInput (input);
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
|
||||||
input.Dispose();
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user