Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Fix Android 4.3 from crashing on my devices. This was annoy…
…ing to find.
  • Loading branch information
Sonicadvance1 committed Aug 21, 2013
1 parent fbd0fba commit 60ccb2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Core/Common/Src/MemArena.cpp
Expand Up @@ -152,7 +152,11 @@ u8* MemArena::Find4GBBase()
PanicAlert("Failed to map 1 GB of memory space: %s", strerror(errno));
return 0;
}
#ifndef ANDROID
// Android 4.3 changes how munmap works which causes crashes.
// Keep the memory space after allocating it...
munmap(base, MemSize);
#endif
return static_cast<u8*>(base);
#endif
#endif
Expand Down

0 comments on commit 60ccb2f

Please sign in to comment.