Close the compressor before starting to optimize to lower memory usage
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2958 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
6d63dd3a58
commit
97cde160db
1 changed files with 2 additions and 2 deletions
|
@ -830,6 +830,8 @@ int CEXEBuild::add_db_data(IMMap *map) // returns offset
|
|||
}
|
||||
while (compressor->GetNextOut() - out > 0);
|
||||
|
||||
compressor->End();
|
||||
|
||||
int used = bufferlen - avail_out;
|
||||
|
||||
// never store compressed if output buffer is full (compression increased the size...)
|
||||
|
@ -846,8 +848,6 @@ int CEXEBuild::add_db_data(IMMap *map) // returns offset
|
|||
else st = nst;
|
||||
}
|
||||
}
|
||||
|
||||
compressor->End();
|
||||
}
|
||||
#endif // NSIS_CONFIG_COMPRESSION_SUPPORT
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue