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

Unified Diff: remoting/base/codec_test.cc

Issue 3051012: Fix mismatched new[]/delete in EncoderVerbatimTest.TestEncoder... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/codec_test.cc
===================================================================
--- remoting/base/codec_test.cc (revision 53583)
+++ remoting/base/codec_test.cc (working copy)
@@ -266,9 +266,9 @@
end_update->mutable_end_update_stream();
decoder_tester_->ReceivedMessage(end_update);
}
- } else {
+ } else {
delete message;
- }
+ }
}
void AddRects(const gfx::Rect* rects, int count) {
@@ -339,7 +339,7 @@
TestEncodingRects(encoder, &tester, data, kTestRects + 1, 1);
TestEncodingRects(encoder, &tester, data, kTestRects + 2, 1);
TestEncodingRects(encoder, &tester, data, kTestRects + 3, 2);
- delete memory;
+ delete [] memory;
}
static void TestEncodingRects(Encoder* encoder,
@@ -382,7 +382,7 @@
kTestRects + 2, 1);
TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data,
kTestRects + 3, 2);
- delete memory;
+ delete [] memory;
}
} // namespace remoting
Property changes on: remoting/base/codec_test.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698