1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00

fixed memory leak, memory allocated by new[] was freed by delete instead of delete[]

This commit is contained in:
Przemek Owczarek 2011-06-15 08:22:51 -07:00
parent ec3a827060
commit 720deef48b

View file

@ -55,7 +55,7 @@ void Connection::readDataBlock() {
buffer[m_expectingDataSize] = 0; buffer[m_expectingDataSize] = 0;
processNext(buffer); processNext(buffer);
m_expectingDataSize = -1; m_expectingDataSize = -1;
delete buffer; delete[] buffer;
} }
void Connection::processNext(const char *data) { void Connection::processNext(const char *data) {