Make sure to dispose MainWindow
This commit is contained in:
parent
d5eec13284
commit
1c31be1398
2 changed files with 4 additions and 3 deletions
|
@ -43,7 +43,6 @@ namespace Ryujinx
|
|||
ConfigurationState.Instance.ToFileFormat().SaveConfig(configurationPath);
|
||||
}
|
||||
|
||||
|
||||
Profile.Initialize();
|
||||
|
||||
Application.Init();
|
||||
|
|
|
@ -239,7 +239,7 @@ namespace Ryujinx.Ui
|
|||
HLE.Switch device = InitializeSwitchInstance();
|
||||
|
||||
// TODO: Move this somewhere else + reloadable?
|
||||
Ryujinx.Graphics.Gpu.GraphicsConfig.ShadersDumpPath = ConfigurationState.Instance.Graphics.ShadersDumpPath;
|
||||
Graphics.Gpu.GraphicsConfig.ShadersDumpPath = ConfigurationState.Instance.Graphics.ShadersDumpPath;
|
||||
|
||||
if (Directory.Exists(path))
|
||||
{
|
||||
|
@ -359,7 +359,7 @@ namespace Ryujinx.Ui
|
|||
}
|
||||
}
|
||||
|
||||
private static void End(HLE.Switch device)
|
||||
private void End(HLE.Switch device)
|
||||
{
|
||||
if (_ending)
|
||||
{
|
||||
|
@ -373,6 +373,8 @@ namespace Ryujinx.Ui
|
|||
UpdateGameMetadata(device.System.TitleIdText);
|
||||
}
|
||||
|
||||
Dispose();
|
||||
|
||||
Profile.FinishProfiling();
|
||||
device?.Dispose();
|
||||
DiscordIntegrationModule.Exit();
|
||||
|
|
Loading…
Add table
Reference in a new issue