]> granicus.if.org Git - libvpx/commitdiff
vp10_inv_txfm2d_test: fix memory leak
authorJames Zern <jzern@google.com>
Fri, 27 May 2016 03:04:59 +0000 (20:04 -0700)
committerJames Zern <jzern@google.com>
Fri, 27 May 2016 03:04:59 +0000 (20:04 -0700)
input_, ref_input_ and output_ were being allocated with new[] followed
by vpx_memalign, remove the former

Change-Id: Ia16d0f9b9317042a24445095ad3c284f4e7bb481

test/vp10_inv_txfm2d_test.cc

index fef46298dbb73d766d752121b7f1488e4b65bb3b..c8976dfca86a583de53e4139b992f688bbe50b6d 100644 (file)
@@ -42,9 +42,6 @@ class VP10InvTxfm2d : public ::testing::TestWithParam<VP10InvTxfm2dParam> {
     txfm1d_size_ = libvpx_test::get_txfm1d_size(tx_size_);
     txfm2d_size_ = txfm1d_size_ * txfm1d_size_;
     count_ = 500;
-    input_ = new int16_t[txfm2d_size_];
-    ref_input_ = new uint16_t[txfm2d_size_];
-    output_ = new int32_t[txfm2d_size_];
 
     input_ = reinterpret_cast<int16_t *>
         (vpx_memalign(16, sizeof(int16_t) * txfm2d_size_));