Pārlūkot izejas kodu

Replace delete[] with deallocate()

Daniele Bartolini 12 gadi atpakaļ
vecāks
revīzija
d22b03dad8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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
 			//Either the file gave an error, or ended before size bytes could be copied
 			return false;
 			return false;
 		}
 		}