fix valgrind errors

pull/2/head
weidai 2008-11-21 23:33:35 +00:00
parent bb82d51d1e
commit 1dc4ead999
2 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,8 @@ class DL_FixedBasePrecomputationImpl : public DL_FixedBasePrecomputation<T>
public:
typedef T Element;
DL_FixedBasePrecomputationImpl() : m_windowSize(0) {}
// DL_FixedBasePrecomputation
bool IsInitialized() const
{return !m_bases.empty();}

View File

@ -214,6 +214,7 @@ inline void HuffmanEncoder::Encode(LowFirstBitWriter &writer, value_t value) con
Deflator::Deflator(BufferedTransformation *attachment, int deflateLevel, int log2WindowSize, bool detectUncompressible)
: LowFirstBitWriter(attachment)
, m_deflateLevel(-1)
{
InitializeStaticEncoders();
IsolatedInitialize(MakeParameters("DeflateLevel", deflateLevel)("Log2WindowSize", log2WindowSize)("DetectUncompressible", detectUncompressible));