From abb09092d2609be4a7bee4b486dd8ae70aa7b179 Mon Sep 17 00:00:00 2001 From: Summeli Date: Thu, 24 Jan 2013 23:15:20 +0200 Subject: [PATCH] fixed null ptr bug in Symbian --- Common/MemoryUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/MemoryUtil.cpp b/Common/MemoryUtil.cpp index d3be724610..8d21e42508 100644 --- a/Common/MemoryUtil.cpp +++ b/Common/MemoryUtil.cpp @@ -66,6 +66,7 @@ void* AllocateExecutableMemory(size_t size, bool low) { TInt minsize = SYMBIAN_CODECHUNCK_SIZE; TInt maxsize = SYMBIAN_CODECHUNCK_SIZE + 3*4096; //some offsets + g_code_chunk = new RChunk(); g_code_chunk->CreateLocalCode(minsize, maxsize); g_code_heap = UserHeap::ChunkHeap(*g_code_chunk, minsize, 1, maxsize); } @@ -137,7 +138,6 @@ void* AllocateMemoryPages(size_t size) // printf("Mapped memory at %p (size %ld)\n", ptr, // (unsigned long)size); - if (ptr == NULL) PanicAlert("Failed to allocate raw memory");