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

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

No files matched your search

+3 -1
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;