Merge to XFA: Fix leaks in embedder test's FlateEncode() usage and in FlateEncode().
authorLei Zhang <thestig@chromium.org>
Fri, 15 May 2015 23:10:35 +0000 (16:10 -0700)
committerLei Zhang <thestig@chromium.org>
Fri, 15 May 2015 23:10:35 +0000 (16:10 -0700)
commit917c7fa7ccb5b7d5a9d89e717357f0ac6dfb9aa9
treefb946ea11255b12080dc642d6162ebbfe5a95847
parent490842eac38daebf5e49e3ae6aef601a00c73dce
Merge to XFA: Fix leaks in embedder test's FlateEncode() usage and in FlateEncode().

For FlateEncode(), error handling code leaked memory.

R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1144603002

(cherry picked from commit 1962d61b28df03284e3e5c6de6a19f397a066e68)

Review URL: https://codereview.chromium.org/1125413008
core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp
core/src/fxcodec/codec/fx_codec_flate.cpp