Fix potential memory leak in src/Format.cpp

(Merging pull request #233)
This commit is contained in:
Martin Ettl 2014-12-23 11:45:48 +01:00 committed by jacksonmj
parent 236ff08da9
commit 93eb934322

View File

@ -213,7 +213,7 @@ std::vector<char> format::VideoBufferToPPM(const VideoBuffer & vidBuf)
}
data.insert(data.end(), currentRow, currentRow+(vidBuf.Width*3));
}
delete currentRow;
delete [] currentRow;
return data;
}