Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
fixed malloc/new
  • Loading branch information
Nick007J committed Apr 11, 2020
1 parent 1ecb498 commit 1c0c0a046842c0b937a07e5a957950faf54611af
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/control/Record.cpp
@@ -40,7 +40,7 @@ void CRecordDataForGame::Init(void)
RecordingState = STATE_PLAYBACK;
}
if (RecordingState == STATE_PLAYBACK) {
pDataBufferPointer = (uint8*)malloc(MEMORY_FOR_GAME_RECORD);
pDataBufferPointer = new uint8[MEMORY_FOR_GAME_RECORD];
pDataBuffer = pDataBufferPointer;
pDataBuffer[CFileMgr::Read(FId, (char*)pDataBufferPointer, MEMORY_FOR_GAME_RECORD) + 8] = -1;
CFileMgr::CloseFile(FId);

0 comments on commit 1c0c0a0

Please sign in to comment.