Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1421)

Unified Diff: content/renderer/bluetooth/bluetooth_dispatcher.cc

Issue 1746973002: bluetooth: Fix leak in getCharacteristics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/bluetooth/bluetooth_dispatcher.cc
diff --git a/content/renderer/bluetooth/bluetooth_dispatcher.cc b/content/renderer/bluetooth/bluetooth_dispatcher.cc
index 63f1753a96a15d75fd5e9ec1d67d728abd639ae5..5c4e81bcd48e485c028caa6046b00c7efd04a1ed 100644
--- a/content/renderer/bluetooth/bluetooth_dispatcher.cc
+++ b/content/renderer/bluetooth/bluetooth_dispatcher.cc
@@ -729,7 +729,7 @@ void BluetoothDispatcher::OnGetCharacteristicsSuccess(
request->callbacks->onSuccess(blink::adoptWebPtr(characteristics));
- pending_characteristics_requests_.Lookup(request_id);
+ pending_characteristics_requests_.Remove(request_id);
}
void BluetoothDispatcher::OnGetCharacteristicsError(int thread_id,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698