Skip to content

Commit

Permalink
Dont pass a freed pointer
Browse files Browse the repository at this point in the history
It was harmless anyways, it was just being used to find an entry in a
container
  • Loading branch information
nico-abram committed Mar 30, 2018
1 parent da3b757 commit cec97d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RageFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ void RageFile::Close()
{
if( m_File == NULL )
return;
delete m_File;
if( m_Mode & WRITE )
FILEMAN->CacheFile( m_File, m_Path );
delete m_File;
m_File = NULL;
}

Expand Down

0 comments on commit cec97d0

Please sign in to comment.