No need to release resources in destructor of CPDF_ShadingObject
authorBo Xu <bo_xu@foxitsoftware.com>
Thu, 28 Aug 2014 18:49:17 +0000 (11:49 -0700)
committerBo Xu <bo_xu@foxitsoftware.com>
Thu, 28 Aug 2014 18:49:17 +0000 (11:49 -0700)
commitf105b19434fdeecac2dd2f78fed5b45ed2637ab3
tree27b483383ebd751b22eb6b804675620d1df0792b
parentfdcc8744f8f7d807bf0dbc761cdc8d6a6e0798cb
No need to release resources in destructor of CPDF_ShadingObject

CPDF_DocPageData::~CPDF_DocPageData() will force to release all resources, so no need to do it here, which can result in heap-use-after-free trouble.

BUG=408164
R=jun_fang@foxitsoftware.com, tsepez@chromium.org

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