From 365333552cf67b7c97c4093177e7ed7b43f540ab Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 16 May 2017 15:40:23 -0700 Subject: CFDE_RenderDevice::m_bOwnerDevice is always false So remove it. But they probably wanted it to be true in one place, because it looks like a leak. So find a better way to own the object. Change-Id: I15937e29da5ce8b380f82cb20ee3ecc3f49b8ca3 Reviewed-on: https://pdfium-review.googlesource.com/5473 Commit-Queue: Tom Sepez Reviewed-by: dsinclair --- xfa/fxfa/app/cxfa_textlayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/app/cxfa_textlayout.cpp') diff --git a/xfa/fxfa/app/cxfa_textlayout.cpp b/xfa/fxfa/app/cxfa_textlayout.cpp index 686ad4ee0d..c43f7e3260 100644 --- a/xfa/fxfa/app/cxfa_textlayout.cpp +++ b/xfa/fxfa/app/cxfa_textlayout.cpp @@ -559,7 +559,7 @@ bool CXFA_TextLayout::DrawString(CFX_RenderDevice* pFxDevice, if (!pFxDevice) return false; - auto pDevice = pdfium::MakeUnique(pFxDevice, false); + auto pDevice = pdfium::MakeUnique(pFxDevice); pDevice->SaveState(); pDevice->SetClipRect(rtClip); -- cgit v1.2.3