From 496b124bafe7d4f80ad5fb035458aeff4172c2ca Mon Sep 17 00:00:00 2001 From: "E.T" Date: Wed, 7 Jun 2023 15:41:30 +0200 Subject: [PATCH] fix missmatched deletes in spectrum painter (#1121) --- firmware/application/apps/ui_spectrum_painter_image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/application/apps/ui_spectrum_painter_image.cpp b/firmware/application/apps/ui_spectrum_painter_image.cpp index 3b357422..b04559eb 100644 --- a/firmware/application/apps/ui_spectrum_painter_image.cpp +++ b/firmware/application/apps/ui_spectrum_painter_image.cpp @@ -234,14 +234,14 @@ std::vector SpectrumInputImageView::get_line(uint16_t y) { grey_buffer[px] = color.to_greyscale(); } - delete buffer; + delete[] buffer; std::vector values(width); for (int i = 0; i < width; i++) { values[i] = grey_buffer[i]; } - delete grey_buffer; + delete[] grey_buffer; return values; }