From 2d6749f8c86b6c0ab9bf64f6666ad167f883226e Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 10 Dec 2014 03:12:47 -0800 Subject: [PATCH] 3DS: Use linearAlloc instead of malloc --- src/platform/3ds/3ds-memory.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/platform/3ds/3ds-memory.c b/src/platform/3ds/3ds-memory.c index e11da7da1..e3417c828 100644 --- a/src/platform/3ds/3ds-memory.c +++ b/src/platform/3ds/3ds-memory.c @@ -5,10 +5,13 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "util/memory.h" +#include <3ds.h> + void* anonymousMemoryMap(size_t size) { - return malloc(size); + return linearAlloc(size); } void mappedMemoryFree(void* memory, size_t size) { - free(memory); + UNUSED(size); + linearFree(memory); }