mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
SDL: Fix use after free on shutdown
This commit is contained in:
1 parent
98f593fd5d
commit
6a3856674c
1 file changed
+1
-1
+1
-1
@@ -457,9 +457,9 @@ static void EmuThreadFunc(GraphicsContext *graphicsContext) {
|
||||
UpdateRunLoop();
|
||||
}
|
||||
emuThreadState = (int)EmuThreadState::STOPPED;
|
||||
graphicsContext->StopThread();
|
||||
|
||||
NativeShutdownGraphics();
|
||||
graphicsContext->StopThread();
|
||||
}
|
||||
|
||||
static void EmuThreadStart(GraphicsContext *context) {
|
||||
|
||||
Reference in new issue
Block a user