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

Unified Diff: chromeos/dbus/fake_bluetooth_gatt_descriptor_client.cc

Issue 524693002: Plug memory leaks in BluetoothGattChromeOSTest.*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: chromeos/dbus/fake_bluetooth_gatt_descriptor_client.cc
diff --git a/chromeos/dbus/fake_bluetooth_gatt_descriptor_client.cc b/chromeos/dbus/fake_bluetooth_gatt_descriptor_client.cc
index a39a160526a5dc115ac1f57e896c251ce4b13850..3bdeed187f18813fdf1a9edf1670ddeb3127f451 100644
--- a/chromeos/dbus/fake_bluetooth_gatt_descriptor_client.cc
+++ b/chromeos/dbus/fake_bluetooth_gatt_descriptor_client.cc
@@ -56,6 +56,9 @@ FakeBluetoothGattDescriptorClient::FakeBluetoothGattDescriptorClient()
}
FakeBluetoothGattDescriptorClient::~FakeBluetoothGattDescriptorClient() {
+ for(PropertiesMap::iterator iter = properties_.begin(); iter !=
+ properties_.end(); iter++)
+ delete iter->second;
}
void FakeBluetoothGattDescriptorClient::Init(dbus::Bus* bus) {
« 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