| Index: dbus/property_unittest.cc
|
| diff --git a/dbus/property_unittest.cc b/dbus/property_unittest.cc
|
| index bd37a53099d2fedb9aa479dc3379235ddcb03a61..052d98bf69e8a50141458a63ea4914be713428cd 100644
|
| --- a/dbus/property_unittest.cc
|
| +++ b/dbus/property_unittest.cc
|
| @@ -76,9 +76,10 @@ class PropertyTest : public testing::Test {
|
| ASSERT_TRUE(bus_->HasDBusThread());
|
|
|
| // Create the properties structure
|
| - properties_ = new Properties(object_proxy_,
|
| - base::Bind(&PropertyTest::OnPropertyChanged,
|
| - base::Unretained(this)));
|
| + properties_.reset(new Properties(
|
| + object_proxy_,
|
| + base::Bind(&PropertyTest::OnPropertyChanged,
|
| + base::Unretained(this))));
|
| properties_->ConnectSignals();
|
| properties_->GetAll();
|
| }
|
| @@ -141,7 +142,7 @@ class PropertyTest : public testing::Test {
|
| scoped_ptr<base::Thread> dbus_thread_;
|
| scoped_refptr<dbus::Bus> bus_;
|
| dbus::ObjectProxy* object_proxy_;
|
| - Properties* properties_;
|
| + scoped_ptr<Properties> properties_;
|
| scoped_ptr<dbus::TestService> test_service_;
|
| // Properties updated.
|
| std::vector<std::string> updated_properties_;
|
|
|