mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-22 23:45:21 +01:00
+ Fixed memory leak
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user