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:
parent
ec3a827060
commit
720deef48b
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue