minor filament benchmarks cleanup

This commit is contained in:
Mathias Agopian
2023-10-20 15:24:08 -07:00
committed by Mathias Agopian
parent 2b78fd8359
commit 626621fb1c
4 changed files with 38 additions and 17 deletions

View File

@@ -18,6 +18,8 @@
#include "EntityManagerImpl.h"
#include <new>
namespace utils {
EntityManager::EntityManager()
@@ -34,8 +36,8 @@ EntityManager::Listener::~Listener() noexcept = default;
EntityManager& EntityManager::get() noexcept {
// note: we leak the EntityManager because it's more important that it survives everything else
// the leak is really not a problem because the process is terminating anyways.
static EntityManagerImpl* instance = new EntityManagerImpl;
// the leak is really not a problem because the process is terminating anyway.
static EntityManagerImpl* instance = new(std::nothrow) EntityManagerImpl;
return *instance;
}