Adjust the order of clearing resource in CPDF_DocPageData::Clear
authorJun Fang <jun_fang@foxitsoftware.com>
Fri, 19 Sep 2014 21:51:51 +0000 (14:51 -0700)
committerJun Fang <jun_fang@foxitsoftware.com>
Fri, 19 Sep 2014 21:51:51 +0000 (14:51 -0700)
commit26019d4a79c84843c710cd9505bd40e9da0ca4c6
tree1931ec85ed6f82b5ff0a62426078b27ace003305
parente0399c76ba1412926a3d55f6328a095c23467951
Adjust the order of clearing resource in CPDF_DocPageData::Clear

Images are basic resource and are referred or used by other objects in some cases. Images should be released after the objects who uses these objects. In this case, an image object is accessed in the process of CPDF_TilingPattern's destroy. Unlikely, this image has been destroyed before.

BUG=414046
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/582993002
core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp