From 97cde160db8633928002ee513790a2d9b4025036 Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 23 Sep 2003 19:56:58 +0000 Subject: [PATCH] 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 --- Source/build.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/build.cpp b/Source/build.cpp index 3dbe6f8d..83206888 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -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