Move Close to end of AttachUsbDeviceToVm to fix crashes
Close destroys the CrosUsbNotificationDelegate and vm_name and guid args may be invalid after Close. Removed HexEncode calls around guid. I incorrectly added these earlier when I was seeing garbage in the logs for guid and assumed it was binary. I should have looked into this more at the time and realized that guid was being deleted by the call to Close. Change-Id: Id5adeb8476773821d5725e6befe73203aabdffc9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2398444 Auto-Submit: Joel Hockey <joelhockey@chromium.org> Reviewed-by:Nicholas Verne <nverne@chromium.org> Commit-Queue: Joel Hockey <joelhockey@chromium.org> Cr-Commit-Position: refs/heads/master@{#805216}
Showing
Please register or sign in to comment