mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 15:44:00 +08:00
(OgvAudio.TryOpen): don't dispose of intermediate stream.
This commit is contained in:
parent
781ad04b95
commit
128f1f1477
@ -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);
|
return new OggInput (input);
|
||||||
}
|
// input is left undisposed in case of exception.
|
||||||
catch
|
|
||||||
{
|
|
||||||
input.Dispose();
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user