From 6b4adcc95b2e732d5b370b6abda422d6569a8b80 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Wed, 26 Sep 2012 13:31:39 -0400 Subject: [PATCH] Fix bug where we didn't initialize a variable properly, which led to a crash --- Core/src/WorkerQueue.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/src/WorkerQueue.cpp b/Core/src/WorkerQueue.cpp index 8cb54a5..2075415 100644 --- a/Core/src/WorkerQueue.cpp +++ b/Core/src/WorkerQueue.cpp @@ -99,6 +99,7 @@ WorkerQueue::WorkerQueue( , m_InBufSz(inBufSz) , m_InBuf(inBuf) , m_OutBuf(outBuf) + , m_NextBlock(0) , m_CompressionFunc(func) { clamp(m_NumThreads, uint32(1), uint32(kMaxNumWorkerThreads)); @@ -123,6 +124,7 @@ void WorkerQueue::Run() { m_StopWatch.Reset(); m_StopWatch.Start(); + m_NextBlock = 0; m_WaitingThreads = 0; // Wait for them to finish...