From 19853e39a6dbf6ce1a1d8fb8015754832d4d409e Mon Sep 17 00:00:00 2001 From: "stevenjb@chromium.org" Date: Fri, 4 Oct 2013 21:50:47 +0000 Subject: Track active references in ShillClientHelper (Take 2) To prevent Shill Service DBus ObjectProxy instances from accumulating, remove them when the service becomes inactive. Original CL: https://codereview.chromium.org/23658053/ BUG=223483 TBR=hashimoto@chromium.org Review URL: https://codereview.chromium.org/24558004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227100 0039d316-1c4b-4281-b951-d872f2087c98 --- chromeos/dbus/shill_ipconfig_client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chromeos/dbus/shill_ipconfig_client.cc') diff --git a/chromeos/dbus/shill_ipconfig_client.cc b/chromeos/dbus/shill_ipconfig_client.cc index 4483078..46aeb71 100644 --- a/chromeos/dbus/shill_ipconfig_client.cc +++ b/chromeos/dbus/shill_ipconfig_client.cc @@ -70,7 +70,7 @@ class ShillIPConfigClientImpl : public ShillIPConfigClient { // There is no helper for the profile, create it. dbus::ObjectProxy* object_proxy = bus_->GetObjectProxy(shill::kFlimflamServiceName, ipconfig_path); - ShillClientHelper* helper = new ShillClientHelper(bus_, object_proxy); + ShillClientHelper* helper = new ShillClientHelper(object_proxy); helper->MonitorPropertyChanged(shill::kFlimflamIPConfigInterface); helpers_.insert(HelperMap::value_type(ipconfig_path.value(), helper)); return helper; -- cgit v1.1