mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-15 01:45:46 -04:00
fix missmatched deletes in spectrum painter (#1121)
This commit is contained in:
parent
5a5445e980
commit
496b124baf
1 changed files with 2 additions and 2 deletions
|
@ -234,14 +234,14 @@ std::vector<uint8_t> SpectrumInputImageView::get_line(uint16_t y) {
|
|||
grey_buffer[px] = color.to_greyscale();
|
||||
}
|
||||
|
||||
delete buffer;
|
||||
delete[] buffer;
|
||||
|
||||
std::vector<uint8_t> values(width);
|
||||
for (int i = 0; i < width; i++) {
|
||||
values[i] = grey_buffer[i];
|
||||
}
|
||||
|
||||
delete grey_buffer;
|
||||
delete[] grey_buffer;
|
||||
|
||||
return values;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue