commit | 2a375e615245ec9cc6ce32f755a5a46564a250e7 | [log] [tgz] |
---|---|---|
author | imcheng <imcheng@chromium.org> | Sat Oct 22 02:49:04 2016 |
committer | Commit bot <commit-bot@chromium.org> | Sat Oct 22 02:51:49 2016 |
tree | 8411bb54218e988f2e54b0b5ba6a0ddc3aa8f7f5 | |
parent | 5bbf3c6317574a1b6b3798863d0b50299aff9070 [diff] |
[DIAL] Make a copy of device id before erasing device from map. erase() by key takes input param as a const ref. Invoking erase() by key using data that will be destroyed during the erase() call will result in undefined behavior. BUG=656073 Review-Url: https://chromiumcodereview.appspot.com/2436403003 Cr-Commit-Position: refs/heads/master@{#426957}