Fix potential access of free'd memory when re-opening an already open folder memory card.

This commit is contained in:
Admiral H. Curtiss 2016-04-02 03:40:59 +02:00
parent 7f3f6e96d8
commit 3b7ba39590
1 changed files with 1 additions and 1 deletions

View File

@ -42,11 +42,11 @@ void FolderMemoryCard::InitializeInternalData() {
memset( &m_backupBlock2, 0xFF, sizeof( m_backupBlock2 ) );
m_cache.clear();
m_oldDataCache.clear();
m_lastAccessedFile.CloseAll();
m_fileMetadataQuickAccess.clear();
m_timeLastWritten = 0;
m_isEnabled = false;
m_framesUntilFlush = 0;
m_lastAccessedFile.CloseAll();
m_performFileWrites = true;
}