Fixed memory leak in IpcReader.cpp
This commit is contained in:
parent
d34a59a984
commit
11d5691bca
|
@ -65,7 +65,7 @@ void IpcReader::read()
|
||||||
char* data = new char[len];
|
char* data = new char[len];
|
||||||
readStream(data, len);
|
readStream(data, len);
|
||||||
QString line = QString::fromUtf8(data, len);
|
QString line = QString::fromUtf8(data, len);
|
||||||
delete data;
|
delete[] data;
|
||||||
|
|
||||||
readLogLine(line);
|
readLogLine(line);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue