mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1207183 - micro-optimize removing work items from DecodePool's queues; r=seth
We're transferring ownership out of the queue; there's no reason for us to pay for an AddRef/Release pair here.
This commit is contained in:
parent
46b37645c7
commit
4a1659c5a9
@ -246,7 +246,7 @@ private:
|
||||
{
|
||||
Work work;
|
||||
work.mType = Work::Type::DECODE;
|
||||
work.mDecoder = aQueue.LastElement();
|
||||
work.mDecoder = aQueue.LastElement().forget();
|
||||
aQueue.RemoveElementAt(aQueue.Length() - 1);
|
||||
|
||||
return work;
|
||||
|
Loading…
Reference in New Issue
Block a user