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:
parent
747cd87da1
commit
6ed617be22
@ -69,6 +69,7 @@ TEST_F(ThreadTest, StartStop) {
|
||||
unsigned int id = 42;
|
||||
ASSERT_TRUE(thread->Start(id));
|
||||
EXPECT_TRUE(thread->Stop());
|
||||
delete thread;
|
||||
}
|
||||
|
||||
// Function that sets a boolean.
|
||||
@ -88,6 +89,7 @@ TEST_F(ThreadTest, RunFunctionIsCalled) {
|
||||
EXPECT_TRUE(thread->Stop());
|
||||
// We expect the thread to have run at least once.
|
||||
EXPECT_TRUE(flag);
|
||||
delete thread;
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
|
Loading…
x
Reference in New Issue
Block a user