mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-04-16 21:46:03 +02:00
Don't crash on exit from SDLActivity if we don't have a singleton for some reason. (Thanks Rachel!)
This commit is contained in:
parent
fe196db774
commit
63317dfb17
@ -427,6 +427,9 @@ public class SDLActivity extends Activity {
|
|||||||
/* The native thread has finished */
|
/* The native thread has finished */
|
||||||
public static void handleNativeExit() {
|
public static void handleNativeExit() {
|
||||||
SDLActivity.mSDLThread = null;
|
SDLActivity.mSDLThread = null;
|
||||||
|
|
||||||
|
// Make sure we currently have a singleton before we try to call it.
|
||||||
|
if (mSingleton != null)
|
||||||
mSingleton.finish();
|
mSingleton.finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user