mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 10:03:05 +08:00
remove all memory stream dispose
This commit is contained in:
parent
7989286528
commit
09047538c7
@ -90,8 +90,6 @@ namespace osu.Game.Scoring
|
||||
Performer.PerformFromScreen(screen => screen.Push(new ReplayMissingBeatmapScreen(res, stream)));
|
||||
};
|
||||
|
||||
req.Failure += _ => stream.Dispose();
|
||||
|
||||
api.Queue(req);
|
||||
}
|
||||
|
||||
|
@ -196,8 +196,6 @@ namespace osu.Game.Screens.Import
|
||||
scoreManager.Import(progressNotification, new[] { importTask })
|
||||
.ContinueWith(s =>
|
||||
{
|
||||
scoreStream.Dispose();
|
||||
|
||||
s.GetResultSafely<IEnumerable<Live<ScoreInfo>>>().FirstOrDefault()?.PerformRead(score =>
|
||||
{
|
||||
Guid scoreid = score.ID;
|
||||
@ -219,7 +217,6 @@ namespace osu.Game.Screens.Import
|
||||
base.Dispose(isDisposing);
|
||||
|
||||
realmSubscription?.Dispose();
|
||||
scoreStream?.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user