Skip to content
Snippets Groups Projects
Commit 436fe6a4 authored by Xiaohong Bao's avatar Xiaohong Bao
Browse files

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

parent 2dbbf6bd
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,12 @@ LLImageDecodeThread::LLImageDecodeThread(bool threaded) ...@@ -38,6 +38,12 @@ LLImageDecodeThread::LLImageDecodeThread(bool threaded)
mCreationMutex = new LLMutex(getAPRPool()); mCreationMutex = new LLMutex(getAPRPool());
} }
//virtual
LLImageDecodeThread::~LLImageDecodeThread()
{
delete mCreationMutex ;
}
// MAIN THREAD // MAIN THREAD
// virtual // virtual
S32 LLImageDecodeThread::update(U32 max_time_ms) S32 LLImageDecodeThread::update(U32 max_time_ms)
......
...@@ -73,6 +73,8 @@ class LLImageDecodeThread : public LLQueuedThread ...@@ -73,6 +73,8 @@ class LLImageDecodeThread : public LLQueuedThread
public: public:
LLImageDecodeThread(bool threaded = true); LLImageDecodeThread(bool threaded = true);
virtual ~LLImageDecodeThread();
handle_t decodeImage(LLImageFormatted* image, handle_t decodeImage(LLImageFormatted* image,
U32 priority, S32 discard, BOOL needs_aux, U32 priority, S32 discard, BOOL needs_aux,
Responder* responder); Responder* responder);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment