mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
removing all singletons
This commit is contained in:
@@ -4,6 +4,13 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
MemManager* MemManager::s_instance = nullptr;
|
||||
|
||||
MemManager::MemManager()
|
||||
{
|
||||
s_instance = this;
|
||||
}
|
||||
|
||||
void* MemManager::Malloc(std::size_t size)
|
||||
{
|
||||
void* ptr = std::malloc(size);
|
||||
@@ -49,5 +56,6 @@ namespace mlx
|
||||
{
|
||||
std::free(ptr);
|
||||
});
|
||||
s_instance = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user