Commit ebce4f22 authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

Fix use-after-move in //gpu/ipc/client/

Fix use-after-move (potential) bugs found by the
"bugprone-use-after-move" clang-tidy check.

Bug: 1122844
Change-Id: I666b338a5060005e6b79bf009449d80d0ceb988a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2385300Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
Commit-Queue: Maksim Ivanov <emaxx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805705}
parent 992c5c44
...@@ -202,7 +202,7 @@ Mailbox SharedImageInterfaceProxy::CreateSharedImage( ...@@ -202,7 +202,7 @@ Mailbox SharedImageInterfaceProxy::CreateSharedImage(
} }
base::AutoLock lock(lock_); base::AutoLock lock(lock_);
AddMailbox(params.mailbox, usage); AddMailbox(mailbox, usage);
return mailbox; return mailbox;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment