commit | 361981faa86668cd9b20a2837d0b166fc024cd9b | [log] [tgz] |
---|---|---|
author | tommi@webrtc.org <tommi@webrtc.org> | Thu Mar 19 14:44:18 2015 +0000 |
committer | tommi@webrtc.org <tommi@webrtc.org> | Thu Mar 19 14:45:42 2015 +0000 |
tree | a9468565eb478442942b3330e8f90b015cced530 | |
parent | c7d5a733b0b5d7d34f47772f5e1bb5e7420d2686 [diff] [blame] |
Use scoped_ptr for ThreadWrapper::CreateThread. BUG= R=henrika@webrtc.org, pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/45799004 Cr-Commit-Position: refs/heads/master@{#8794} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8794 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/system_wrappers/source/condition_variable_unittest.cc b/webrtc/system_wrappers/source/condition_variable_unittest.cc index 9ca4ca9..d6907f6 100644 --- a/webrtc/system_wrappers/source/condition_variable_unittest.cc +++ b/webrtc/system_wrappers/source/condition_variable_unittest.cc
@@ -158,14 +158,13 @@ ASSERT_TRUE(baton_.Pass(kShortWaitMs)); ASSERT_TRUE(baton_.Grab(kShortWaitMs)); ASSERT_TRUE(thread_->Stop()); - delete thread_; } protected: Baton baton_; private: - ThreadWrapper* thread_; + rtc::scoped_ptr<ThreadWrapper> thread_; }; // The SetUp and TearDown functions use condition variables.