diff --git a/modules/highgui/src/grfmt_exr.cpp b/modules/highgui/src/grfmt_exr.cpp index ac73b7732..ac874ae61 100644 --- a/modules/highgui/src/grfmt_exr.cpp +++ b/modules/highgui/src/grfmt_exr.cpp @@ -719,7 +719,7 @@ bool ExrEncoder::write( const Mat& img, const vector& ) } data += step; } - delete buffer; + delete[] buffer; } return result;