УМНЫЕ УКАЗАТЕЛИ

This commit is contained in:
Евгений Титаренко 2024-04-20 00:03:12 +03:00
parent 7c83d9c93e
commit fcce9d93d4
7 changed files with 240 additions and 254 deletions

View file

@ -56,10 +56,10 @@ Pixel &PixelArray::operator()(const uint32_t &i, const uint32_t &j) {
}
PixelArray::~PixelArray() {
// for (int i = 0; i < this->_height; ++i) {
// delete[] this->array[i];
// }
// delete[] this->array;
for (int i = 0; i < this->_height; ++i) {
delete[] this->array[i];
}
delete[] this->array;
}
PixelArray::PixelArray(const PixelArray &pA) {