Backported from Viewer-Dev (14684 (b047db67c337) fix a minor memory leaking flaw for SH-895: some mild memory leaking (partially))

master
Tank_Master 2011-02-10 08:13:49 -08:00
parent e2e1dbd58e
commit d3d4aa37eb
2 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,11 @@ LLImageDecodeThread::LLImageDecodeThread(bool threaded)
// MAIN THREAD
// virtual
LLImageDecodeThread::~LLImageDecodeThread()
{
delete mCreationMutex ;
}
S32 LLImageDecodeThread::update(U32 max_time_ms)
{
LLMutexLock lock(mCreationMutex);

View File

@ -73,6 +73,8 @@ public:
public:
LLImageDecodeThread(bool threaded = true);
virtual ~LLImageDecodeThread();
handle_t decodeImage(LLImageFormatted* image,
U32 priority, S32 discard, BOOL needs_aux,
Responder* responder);