fixed bug #1388
authorVadim Pisarevsky <no@email>
Tue, 27 Sep 2011 15:23:43 +0000 (15:23 +0000)
committerVadim Pisarevsky <no@email>
Tue, 27 Sep 2011 15:23:43 +0000 (15:23 +0000)
modules/highgui/src/grfmt_exr.cpp

index ac73b77..ac874ae 100644 (file)
@@ -719,7 +719,7 @@ bool  ExrEncoder::write( const Mat& img, const vector<int>& )
             }
             data += step;
         }
-        delete buffer;
+        delete[] buffer;
     }
 
     return result;