Fix leaks in embedder test's FlateEncode() usage and in FlateEncode().
authorLei Zhang <thestig@chromium.org>
Fri, 15 May 2015 23:09:12 +0000 (16:09 -0700)
committerLei Zhang <thestig@chromium.org>
Fri, 15 May 2015 23:09:12 +0000 (16:09 -0700)
commit1962d61b28df03284e3e5c6de6a19f397a066e68
tree02cfd552f1f18a1377ab5b804e91d252199f3c8a
parent69b4bc7278d9c2b7ab1564aca20795f02393357a
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
core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp
core/src/fxcodec/codec/fx_codec_flate.cpp