From 7fb31462e4dbd5905a54a1f650658830e09cb2b3 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sun, 5 Feb 2017 20:39:46 -0600 Subject: [PATCH] Logger: Use platform-agnostic aligned alloc --- src/xenia/base/logging.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/base/logging.cc b/src/xenia/base/logging.cc index a16331170..720bf271c 100644 --- a/src/xenia/base/logging.cc +++ b/src/xenia/base/logging.cc @@ -23,6 +23,7 @@ #include "xenia/base/filesystem.h" #include "xenia/base/main.h" #include "xenia/base/math.h" +#include "xenia/base/memory.h" #include "xenia/base/ring_buffer.h" #include "xenia/base/threading.h" @@ -215,7 +216,7 @@ class Logger { void InitializeLogging(const std::wstring& app_name) { // We leak this intentionally - lots of cleanup code needs it. - void* mem = _aligned_malloc(sizeof(Logger), 0x10); + auto mem = memory::AlignedAlloc(0x10); logger_ = new (mem) Logger(app_name); }