Przeglądaj źródła

Replace delete[] with deallocate()

Daniele Bartolini 12 lat temu
rodzic
commit
d22b03dad8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/core/filesystem/DiskFile.cpp

+ 1 - 1
src/core/filesystem/DiskFile.cpp

@@ -128,7 +128,7 @@ bool DiskFile::copy_to(File& file, size_t size)
 				}
 			}
 
-			delete[] buff;
+			default_allocator().deallocate(buff);
 			//Either the file gave an error, or ended before size bytes could be copied
 			return false;
 		}