Drop the gameinfocache correctly on shutdown, avoiding a log flood and

possible mem leak on android.
This commit is contained in:
Henrik Rydgård 2013-07-11 14:29:56 +02:00
parent eaa59f9bfe
commit 3c653cb3fc
3 changed files with 5 additions and 3 deletions

View file

@ -533,7 +533,7 @@ void NativeUpdate(InputState &input) {
UIUpdateMouse(0, input.pointer_x[0], input.pointer_y[0], input.pointer_down[0]);
screenManager->update(input);
}
}
void NativeDeviceLost() {
g_gameInfoCache.Clear();
@ -573,6 +573,8 @@ void NativeMessageReceived(const char *message, const char *value) {
}
void NativeShutdownGraphics() {
g_gameInfoCache.Clear();
delete uiTexture;
uiTexture = NULL;

2
lang

@ -1 +1 @@
Subproject commit 955d9cde6c01a0950f76b1a6e92e2d972ca5c737
Subproject commit 92e5e45e316f73710882bf82ef8fe43f5192d0f2

2
native

@ -1 +1 @@
Subproject commit bd93cd2f1e02fbd25696a1ea21720d4fb3f48280
Subproject commit ca7eb305e44b75307ff904f73e4e946f5a9f1395