mirror of
https://github.com/osukey/osukey.git
synced 2025-06-29 23:28:00 +09:00
Add missing dispose call
This commit is contained in:
parent
dbdae4b033
commit
ea0715cce4
@ -161,6 +161,8 @@ namespace osu.Game
|
|||||||
|
|
||||||
private readonly BindableNumber<double> globalTrackVolumeAdjust = new BindableNumber<double>(GLOBAL_TRACK_VOLUME_ADJUST);
|
private readonly BindableNumber<double> globalTrackVolumeAdjust = new BindableNumber<double>(GLOBAL_TRACK_VOLUME_ADJUST);
|
||||||
|
|
||||||
|
private RealmRulesetStore realmRulesetStore;
|
||||||
|
|
||||||
public OsuGameBase()
|
public OsuGameBase()
|
||||||
{
|
{
|
||||||
UseDevelopmentServer = DebugUtils.IsDebugBuild;
|
UseDevelopmentServer = DebugUtils.IsDebugBuild;
|
||||||
@ -233,7 +235,7 @@ namespace osu.Game
|
|||||||
dependencies.Cache(BeatmapManager = new BeatmapManager(Storage, contextFactory, RulesetStore, API, Audio, Resources, Host, defaultBeatmap, performOnlineLookups: true));
|
dependencies.Cache(BeatmapManager = new BeatmapManager(Storage, contextFactory, RulesetStore, API, Audio, Resources, Host, defaultBeatmap, performOnlineLookups: true));
|
||||||
|
|
||||||
// the following realm components are not actively used yet, but initialised and kept up to date for initial testing.
|
// the following realm components are not actively used yet, but initialised and kept up to date for initial testing.
|
||||||
var realmRulesetStore = new RealmRulesetStore(realmFactory, Storage);
|
realmRulesetStore = new RealmRulesetStore(realmFactory, Storage);
|
||||||
|
|
||||||
dependencies.Cache(realmRulesetStore);
|
dependencies.Cache(realmRulesetStore);
|
||||||
|
|
||||||
@ -518,6 +520,8 @@ namespace osu.Game
|
|||||||
LocalConfig?.Dispose();
|
LocalConfig?.Dispose();
|
||||||
|
|
||||||
contextFactory?.FlushConnections();
|
contextFactory?.FlushConnections();
|
||||||
|
|
||||||
|
realmRulesetStore?.Dispose();
|
||||||
realmFactory?.Dispose();
|
realmFactory?.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user