2
0
Эх сурвалжийг харах

Use default_allocator() to delete File instances

Daniele Bartolini 12 жил өмнө
parent
commit
d18a2d9668

+ 1 - 1
engine/core/filesystem/Filesystem.cpp

@@ -119,7 +119,7 @@ File* Filesystem::open(const char* mount_point, const char* relative_path, FileO
 //-----------------------------------------------------------------------------
 void Filesystem::close(File* file)
 {
-	CE_DELETE(m_allocator, file);
+	CE_DELETE(default_allocator(), file);
 }
 
 //-----------------------------------------------------------------------------

+ 0 - 4
engine/core/filesystem/Filesystem.h

@@ -119,13 +119,9 @@ private:
 		
 private:
 
-	HeapAllocator		m_allocator;
-
 	char				m_root_path[MAX_PATH_LENGTH];
-
 	MountPoint* 		m_mount_point_head;
 
-
 	friend class		Device;
 };