remove the destructor from the class UnmanagedMemory