fixed null ptr bug in Symbian

This commit is contained in:
Summeli 2013-01-24 23:15:20 +02:00
parent f6159f39f8
commit abb09092d2

View File

@ -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");