MediaWriter: Fix mismatched delete call

This commit is contained in:
Lioncash
2014-09-26 20:45:52 +02:00
committed by François Revol
parent 8108b86980
commit 040e39c534
@@ -368,7 +368,7 @@ status_t MediaWriter::Connected(
bytesWritten = GetCurrentFile()->Write(data,input.format.u.multistream.max_chunk_size);
end = TimeSource()->RealTime();
}
delete data;
delete[] data;
GetCurrentFile()->Seek(-bytesWritten,SEEK_CUR); // put it back where we found it
fInternalLatency = end - start;