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

Unified Diff: courgette/encoded_program_unittest.cc

Issue 10453106: [Leak fixlet] Fix leak in courgette_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « no previous file | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/encoded_program_unittest.cc
diff --git a/courgette/encoded_program_unittest.cc b/courgette/encoded_program_unittest.cc
index e1d7698d737c9ea1078526c6404b9cd6c5c7f9ab..65dd4a6e5819bfac22dcbf7c8b47e6754b3cfc12 100644
--- a/courgette/encoded_program_unittest.cc
+++ b/courgette/encoded_program_unittest.cc
@@ -29,6 +29,7 @@ TEST(EncodedProgramTest, Test) {
courgette::SinkStreamSet sinks;
EXPECT_TRUE(program->WriteTo(&sinks));
+ delete program;
courgette::SinkStream sink;
bool can_collect = sinks.CopyTo(&sink);
@@ -49,6 +50,7 @@ TEST(EncodedProgramTest, Test) {
courgette::SinkStream assembled;
bool can_assemble = encoded2->AssembleTo(&assembled);
EXPECT_TRUE(can_assemble);
+ delete encoded2;
const void* assembled_buffer = assembled.Buffer();
size_t assembled_length = assembled.Length();
« no previous file with comments | « no previous file | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698