forked from mirrors/gecko-dev
Bug 1889080 - Use overloaded Unused operator to leak runnable in RemoteLazyInputStreamThread::Dispatch. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D206341
This commit is contained in:
parent
fe347d24f2
commit
81762982da
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ RemoteLazyInputStreamThread::Dispatch(already_AddRefed<nsIRunnable> aRunnable,
|
|||
|
||||
if (RLISThreadIsInOrBeyondShutdown()) {
|
||||
// nsIEventTarget::Dispatch must leak the runnable if the dispatch fails.
|
||||
(void)runnable.forget();
|
||||
Unused << runnable.forget();
|
||||
|
||||
return NS_ERROR_ILLEGAL_DURING_SHUTDOWN;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue