mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 23:09:26 -05:00
fix missmatched deletes in spectrum painter (#1121)
This commit is contained in:
parent
5a5445e980
commit
496b124baf
@ -234,14 +234,14 @@ std::vector<uint8_t> SpectrumInputImageView::get_line(uint16_t y) {
|
|||||||
grey_buffer[px] = color.to_greyscale();
|
grey_buffer[px] = color.to_greyscale();
|
||||||
}
|
}
|
||||||
|
|
||||||
delete buffer;
|
delete[] buffer;
|
||||||
|
|
||||||
std::vector<uint8_t> values(width);
|
std::vector<uint8_t> values(width);
|
||||||
for (int i = 0; i < width; i++) {
|
for (int i = 0; i < width; i++) {
|
||||||
values[i] = grey_buffer[i];
|
values[i] = grey_buffer[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
delete grey_buffer;
|
delete[] grey_buffer;
|
||||||
|
|
||||||
return values;
|
return values;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user