Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: gpu/command_buffer/client/fenced_allocator_test.cc

Issue 1796010: Fix some memory leaks in GPU tests. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/client/fenced_allocator.h ('k') | gpu/command_buffer/client/ring_buffer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/fenced_allocator_test.cc
diff --git a/gpu/command_buffer/client/fenced_allocator_test.cc b/gpu/command_buffer/client/fenced_allocator_test.cc
index 8dc1b780c7c7ec6a538455b8d13d204f87452d34..1d5c9701bbfb99c08931523da3eab0d4e2415525 100644
--- a/gpu/command_buffer/client/fenced_allocator_test.cc
+++ b/gpu/command_buffer/client/fenced_allocator_test.cc
@@ -67,10 +67,6 @@ class BaseFencedAllocatorTest : public testing::Test {
return command_buffer_->GetState().token;
}
- virtual void TearDown() {
- helper_.release();
- }
-
base::ScopedNSAutoreleasePool autorelease_pool_;
base::AtExitManager at_exit_manager_;
MessageLoop message_loop_;
@@ -101,7 +97,6 @@ class FencedAllocatorTest : public BaseFencedAllocatorTest {
MessageLoop::current()->RunAllPending();
EXPECT_TRUE(allocator_->CheckConsistency());
- allocator_.release();
BaseFencedAllocatorTest::TearDown();
}
@@ -338,8 +333,6 @@ class FencedAllocatorWrapperTest : public BaseFencedAllocatorTest {
MessageLoop::current()->RunAllPending();
EXPECT_TRUE(allocator_->CheckConsistency());
- allocator_.release();
- buffer_.release();
BaseFencedAllocatorTest::TearDown();
}
« no previous file with comments | « gpu/command_buffer/client/fenced_allocator.h ('k') | gpu/command_buffer/client/ring_buffer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698