yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

core: Free AppLoader on shutdown to release file (#2558)

Fixes #2455
This commit is contained in:
Yuri Kunde Schlesner 2017-02-11 03:29:46 -08:00 committed by GitHub
parent 0dd007e9ba
commit da6a40e3d1
1 changed files with 2 additions and 9 deletions

View File

@ -67,10 +67,6 @@ System::ResultStatus System::SingleStep() {
}
System::ResultStatus System::Load(EmuWindow* emu_window, const std::string& filepath) {
if (app_loader) {
app_loader.reset();
}
app_loader = Loader::GetLoader(filepath);
if (!app_loader) {
@ -123,10 +119,6 @@ void System::Reschedule() {
}
System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) {
if (cpu_core) {
cpu_core.reset();
}
Memory::Init();
if (Settings::values.use_cpu_jit) {
@ -159,7 +151,8 @@ void System::Shutdown() {
Kernel::Shutdown();
HW::Shutdown();
CoreTiming::Shutdown();
cpu_core.reset();
cpu_core = nullptr;
app_loader = nullptr;
LOG_DEBUG(Core, "Shutdown OK");
}