fix a minor memory leaking flaw for SH-895: some mild memory leaking (partially)

meow-7.2.2
Xiaohong Bao 2011-02-01 17:53:25 -07:00
parent 2dbbf6bdb8
commit 436fe6a412
2 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,12 @@ LLImageDecodeThread::LLImageDecodeThread(bool threaded)
mCreationMutex = new LLMutex(getAPRPool());
}
//virtual
LLImageDecodeThread::~LLImageDecodeThread()
{
delete mCreationMutex ;
}
// MAIN THREAD
// virtual
S32 LLImageDecodeThread::update(U32 max_time_ms)

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);