From 93eb9343227f1890bb65cf5eb0fbe22e937774dc Mon Sep 17 00:00:00 2001 From: Martin Ettl Date: Tue, 23 Dec 2014 11:45:48 +0100 Subject: [PATCH] Fix potential memory leak in src/Format.cpp (Merging pull request #233) --- src/Format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Format.cpp b/src/Format.cpp index 69521d373..dc36499f7 100644 --- a/src/Format.cpp +++ b/src/Format.cpp @@ -213,7 +213,7 @@ std::vector format::VideoBufferToPPM(const VideoBuffer & vidBuf) } data.insert(data.end(), currentRow, currentRow+(vidBuf.Width*3)); } - delete currentRow; + delete [] currentRow; return data; }