mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-12 02:55:05 +00:00
@@ -13,8 +13,9 @@ struct rmemory_allocator {
|
||||
}
|
||||
template < typename T >
|
||||
static void deallocate(T* ptr) {
|
||||
if (ptr != nullptr)
|
||||
CMemory::Free(ptr);
|
||||
if (ptr != nullptr) {
|
||||
delete[] reinterpret_cast< u8* >(ptr);
|
||||
}
|
||||
}
|
||||
};
|
||||
} // namespace rstl
|
||||
|
||||
Reference in New Issue
Block a user