Commit 74a43bdf authored by John Koleszar's avatar John Koleszar Committed by Gerrit Code Review
Browse files

Merge "superframe_test: use delete[] where appropriate" into experimental

parents 1069c12c c0b44b31
No related merge requests found
Showing with 2 additions and 2 deletions
...@@ -30,7 +30,7 @@ class SuperframeTest : public ::libvpx_test::EncoderTest, ...@@ -30,7 +30,7 @@ class SuperframeTest : public ::libvpx_test::EncoderTest,
} }
virtual void TearDown() { virtual void TearDown() {
delete modified_buf_; delete[] modified_buf_;
} }
virtual bool Continue() const { virtual bool Continue() const {
...@@ -59,7 +59,7 @@ class SuperframeTest : public ::libvpx_test::EncoderTest, ...@@ -59,7 +59,7 @@ class SuperframeTest : public ::libvpx_test::EncoderTest,
buffer[pkt->data.frame.sz - index_sz] == marker) { buffer[pkt->data.frame.sz - index_sz] == marker) {
// frame is a superframe. strip off the index. // frame is a superframe. strip off the index.
if (modified_buf_) if (modified_buf_)
delete modified_buf_; delete[] modified_buf_;
modified_buf_ = new uint8_t[pkt->data.frame.sz - index_sz]; modified_buf_ = new uint8_t[pkt->data.frame.sz - index_sz];
memcpy(modified_buf_, pkt->data.frame.buf, memcpy(modified_buf_, pkt->data.frame.buf,
pkt->data.frame.sz - index_sz); pkt->data.frame.sz - index_sz);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment