MediaWriter: Fix mismatched delete call

This commit is contained in:
Lioncash 2014-09-26 08:51:48 -04:00 committed by François Revol
parent 8108b86980
commit 040e39c534
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ status_t MediaWriter::Connected(
bytesWritten = GetCurrentFile()->Write(data,input.format.u.multistream.max_chunk_size); bytesWritten = GetCurrentFile()->Write(data,input.format.u.multistream.max_chunk_size);
end = TimeSource()->RealTime(); end = TimeSource()->RealTime();
} }
delete data; delete[] data;
GetCurrentFile()->Seek(-bytesWritten,SEEK_CUR); // put it back where we found it GetCurrentFile()->Seek(-bytesWritten,SEEK_CUR); // put it back where we found it
fInternalLatency = end - start; fInternalLatency = end - start;