fxos: fix a very suspicious dangling reference
This commit is contained in:
parent
06a9d7e5af
commit
bbfb96bb1a
|
@ -27,9 +27,10 @@ struct Queue
|
|||
{
|
||||
return pending.empty();
|
||||
}
|
||||
T &pop()
|
||||
T pop()
|
||||
{
|
||||
T &object = pending.front();
|
||||
// TODO: Move object out of container maybe (unclear if possible)
|
||||
T object = pending.front();
|
||||
pending.pop();
|
||||
return object;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue