Fix potential memory leak in src/Format.cpp
(Merging pull request #233)
This commit is contained in:
parent
236ff08da9
commit
93eb934322
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user