don't always free pFile from ~RageFileObjInflate

This commit is contained in:
Glenn Maynard
2004-12-11 22:57:03 +00:00
parent d924734232
commit d171b8e306
3 changed files with 16 additions and 6 deletions
+5 -1
View File
@@ -372,7 +372,11 @@ RageFileBasic *RageFileDriverZip::Open( const CString &path, int mode, int &err
case STORED:
return pFile;
case DEFLATED:
return new RageFileObjInflate( pFile, info->uncompr_size );
{
RageFileObjInflate *pInflate = new RageFileObjInflate( pFile, info->uncompr_size );
pInflate->DeleteFileWhenFinished();
return pInflate;
}
default:
/* unknown compression method */
ASSERT( 0 );