From c4a2ab5d1ea8eca72e0423b3305b08320e6460c5 Mon Sep 17 00:00:00 2001 From: PatrickvL Date: Thu, 30 Mar 2017 15:35:38 +0200 Subject: [PATCH] Quick-fix (requested by Luke) : Allocate palette's using the new MemoryManager --- src/CxbxKrnl/EmuD3D8.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CxbxKrnl/EmuD3D8.cpp b/src/CxbxKrnl/EmuD3D8.cpp index 9d54cf285..143939cbc 100644 --- a/src/CxbxKrnl/EmuD3D8.cpp +++ b/src/CxbxKrnl/EmuD3D8.cpp @@ -8252,7 +8252,7 @@ XTL::X_D3DPalette * WINAPI XTL::EMUPATCH(D3DDevice_CreatePalette2) }; pPalette->Common |= (Size << 30); - pPalette->Data = (DWORD)new uint08[lk[Size]]; + pPalette->Data = (DWORD)g_MemoryManager.AllocateContiguous(lk[Size], PAGE_SIZE); pPalette->Lock = X_D3DRESOURCE_LOCK_PALETTE; // emulated reference count for palettes // TODO: Should't we register the palette with a call to