Skip to content
Snippets Groups Projects
Commit 00dfec68 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #10660: delete[] for array

parent d56e2e22
No related branches found
No related tags found
No related merge requests found
......@@ -382,7 +382,7 @@ GCFEvent* EventPort::receiveEvent(Socket* aSocket)
if (itsReadState == 0) {
// cleanup old garbage if any
if (itsEventBuf) {
delete itsEventBuf;
delete [] itsEventBuf;
itsEventBuf = 0;
}
btsRead = aSocket->read((void*) &(itsEventHdr->signal), sizeof(itsEventHdr->signal));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment