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:
kichik 2003-09-23 19:56:58 +00:00
parent 6d63dd3a58
commit 97cde160db

View file

@ -830,6 +830,8 @@ int CEXEBuild::add_db_data(IMMap *map) // returns offset
} }
while (compressor->GetNextOut() - out > 0); while (compressor->GetNextOut() - out > 0);
compressor->End();
int used = bufferlen - avail_out; int used = bufferlen - avail_out;
// never store compressed if output buffer is full (compression increased the size...) // 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; else st = nst;
} }
} }
compressor->End();
} }
#endif // NSIS_CONFIG_COMPRESSION_SUPPORT #endif // NSIS_CONFIG_COMPRESSION_SUPPORT