Fixing memory leak error in test.

BUG=
TEST=

Review URL: https://webrtc-codereview.appspot.com/571013

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2272 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
hta@webrtc.org 2012-05-22 16:55:16 +00:00
parent 747cd87da1
commit 6ed617be22

View File

@ -69,6 +69,7 @@ TEST_F(ThreadTest, StartStop) {
unsigned int id = 42; unsigned int id = 42;
ASSERT_TRUE(thread->Start(id)); ASSERT_TRUE(thread->Start(id));
EXPECT_TRUE(thread->Stop()); EXPECT_TRUE(thread->Stop());
delete thread;
} }
// Function that sets a boolean. // Function that sets a boolean.
@ -88,6 +89,7 @@ TEST_F(ThreadTest, RunFunctionIsCalled) {
EXPECT_TRUE(thread->Stop()); EXPECT_TRUE(thread->Stop());
// We expect the thread to have run at least once. // We expect the thread to have run at least once.
EXPECT_TRUE(flag); EXPECT_TRUE(flag);
delete thread;
} }
} // namespace webrtc } // namespace webrtc