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

Unified Diff: core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp

Issue 1467183006: Fix two memory leaks from pdfium_unittests (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 1 month 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 | « core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp
diff --git a/core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp b/core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp
index fe552d2ed1a1cee7f27a3e05a7ca9c629f5189aa..4139fbde3b98869a9a10f4e4c96e782be9ef7b66 100644
--- a/core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp
+++ b/core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp
@@ -474,8 +474,6 @@ TEST(fxcodec, YUV420ToRGB) {
u.h = 16;
u.prec = 8;
u.bpp = 8;
- u.data = FX_Alloc(OPJ_INT32, u.w * u.h);
- memset(u.data, 0, u.w * u.h * sizeof(OPJ_INT32));
opj_image_comp_t v;
memset(&v, 0, sizeof(v));
v.dx = 1;
@@ -484,8 +482,6 @@ TEST(fxcodec, YUV420ToRGB) {
v.h = 16;
v.prec = 8;
v.bpp = 8;
- v.data = FX_Alloc(OPJ_INT32, v.w * v.h);
- memset(v.data, 0, v.w * v.h * sizeof(OPJ_INT32));
opj_image_comp_t y;
memset(&y, 0, sizeof(y));
y.dx = 1;
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698