Attempt to stop lollipop crash
This commit is contained in:
parent
f1d564e324
commit
0bb0b47e7a
@ -67,8 +67,11 @@ u32 getTime(TimePrecision prec) {
|
|||||||
|
|
||||||
ClientLauncher::~ClientLauncher()
|
ClientLauncher::~ClientLauncher()
|
||||||
{
|
{
|
||||||
if (receiver)
|
if (receiver) {
|
||||||
|
if (device)
|
||||||
|
device->setEventReceiver(NULL);
|
||||||
delete receiver;
|
delete receiver;
|
||||||
|
}
|
||||||
|
|
||||||
if (input)
|
if (input)
|
||||||
delete input;
|
delete input;
|
||||||
@ -76,8 +79,10 @@ ClientLauncher::~ClientLauncher()
|
|||||||
if (g_fontengine)
|
if (g_fontengine)
|
||||||
delete g_fontengine;
|
delete g_fontengine;
|
||||||
|
|
||||||
if (device)
|
if (device) {
|
||||||
|
device->closeDevice();
|
||||||
device->drop();
|
device->drop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,8 +43,8 @@ void android_main(android_app *app)
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
app_dummy();
|
app_dummy();
|
||||||
char *argv[] = { (char*) "minetest" };
|
char argv[] = PROJECT_NAME;
|
||||||
main(sizeof(argv) / sizeof(argv[0]), argv);
|
retval = main(1, (char **)&argv);
|
||||||
}
|
}
|
||||||
catch(BaseException e) {
|
catch(BaseException e) {
|
||||||
std::stringstream msg;
|
std::stringstream msg;
|
||||||
@ -63,7 +63,7 @@ void android_main(android_app *app)
|
|||||||
|
|
||||||
porting::cleanupAndroid();
|
porting::cleanupAndroid();
|
||||||
errorstream << "Shutting down minetest." << std::endl;
|
errorstream << "Shutting down minetest." << std::endl;
|
||||||
exit(retval);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* handler for finished message box input */
|
/* handler for finished message box input */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user