From a512883170279fb34546bb2974ff392b72ca3c41 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Tue, 27 Sep 2011 15:23:43 +0000 Subject: [PATCH] fixed bug #1388 --- modules/highgui/src/grfmt_exr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;