+ Fixed memory leak

This commit is contained in:
unknown
2014-05-15 19:15:36 +02:00
parent ad3f8e826c
commit c4123da552

View File

@@ -1371,7 +1371,10 @@ static TFileStream * FlatStream_Open(const TCHAR * szFileName, DWORD dwStreamFla
{
// Attempt to open the base stream
if(!pStream->BaseOpen(pStream, pStream->szFileName, dwStreamFlags))
{
FileStream_Close(pStream);
return NULL;
}
// Load the bitmap, if required to
if(dwStreamFlags & STREAM_FLAG_USE_BITMAP)