mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 08:20:30 +02:00
Another null check in NativeShutdown
This commit is contained in:
1 parent
f00367da20
commit
7fbb0c4d41
1 file changed
+9
-6
+9
-6
@@ -1498,16 +1498,19 @@ bool NativeIsRestarting() {
|
||||
}
|
||||
|
||||
void NativeShutdown() {
|
||||
if (screenManager)
|
||||
if (screenManager) {
|
||||
screenManager->shutdown();
|
||||
delete screenManager;
|
||||
screenManager = nullptr;
|
||||
delete screenManager;
|
||||
screenManager = nullptr;
|
||||
}
|
||||
|
||||
host->ShutdownGraphics();
|
||||
if (host) {
|
||||
host->ShutdownGraphics();
|
||||
delete host;
|
||||
host = nullptr;
|
||||
}
|
||||
|
||||
#if !PPSSPP_PLATFORM(UWP)
|
||||
delete host;
|
||||
host = nullptr;
|
||||
#endif
|
||||
g_Config.Save("NativeShutdown");
|
||||
|
||||
|
||||
Reference in new issue
Block a user