all repos — mgba @ 270c1a35d765b833c2b5a2c5f46655f5a31915a9

mGBA Game Boy Advance Emulator

Fix mappedMemoryFree on *nix
Jeffrey Pfau jeffrey@endrift.com
Wed, 15 Jan 2014 00:34:45 -0800
commit

270c1a35d765b833c2b5a2c5f46655f5a31915a9

parent

dd1f1bc79e71700a279acd4c43effb235e6aa6ce

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/util/memory.csrc/util/memory.c

@@ -44,6 +44,6 @@ return mmap(0, size, PROT_READ | PROT_WRITE, mmapFlags, fd, 0);

} void mappedMemoryFree(void* memory, size_t size) { - munmap(memory, memory); + munmap(memory, size); } -#endif+#endif