From 5bed98c044a470e696e3b719d33cb5dc14aa7c32 Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 14 Dec 2016 13:54:33 -0800 Subject: Remove some usage of |return XXX.release()| anti-pattern. Review-Url: https://codereview.chromium.org/2571313002 --- core/fpdfapi/font/cpdf_type3char.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fpdfapi/font') diff --git a/core/fpdfapi/font/cpdf_type3char.cpp b/core/fpdfapi/font/cpdf_type3char.cpp index 41ab824717..5eb12c1752 100644 --- a/core/fpdfapi/font/cpdf_type3char.cpp +++ b/core/fpdfapi/font/cpdf_type3char.cpp @@ -29,8 +29,8 @@ bool CPDF_Type3Char::LoadBitmap(CPDF_RenderContext* pContext) { return false; m_ImageMatrix = pPageObj->AsImage()->matrix(); - std::unique_ptr pSource( - pPageObj->AsImage()->GetImage()->LoadDIBSource()); + std::unique_ptr pSource = + pPageObj->AsImage()->GetImage()->LoadDIBSource(); if (pSource) m_pBitmap = pSource->Clone(); m_pForm.reset(); -- cgit v1.2.3