Fixing Valgrind warnings caused by open files and undeleted memory.

Restructured scaler_unittest.cc to focus tests on testing one thing.

BUG=
TEST=libyuv_unittests in Debug+Release at Linux, Mac and Windows.

Review URL: http://webrtc-codereview.appspot.com/329026

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1329 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
kjellander@webrtc.org
2012-01-04 13:51:50 +00:00
parent d439870473
commit 94558d83bf
2 changed files with 36 additions and 31 deletions

View File

@@ -188,8 +188,8 @@ TEST_F(TestLibYuv, ConvertTest) {
fwrite(res_i420_buffer, frame_length_, 1, output_file);
psnr = I420PSNR(orig_buffer, res_i420_buffer, width_, height_);
EXPECT_EQ(48.0, psnr);
ASSERT_EQ(0, fclose(output_file));
delete [] out_yuy2_buffer;
delete [] res_i420_buffer;
delete [] orig_buffer;
}