From e647799f6a2f7f747c9f55d9f0ce08dcdfbd53f4 Mon Sep 17 00:00:00 2001 From: tsepez Date: Thu, 5 Jan 2017 12:57:00 -0800 Subject: Properly ref-count CFGAS_GEFont with CFX_RetainPtr. We worry about cyclical references, but no leaks found. Review-Url: https://codereview.chromium.org/2609423003 --- xfa/fwl/cfwl_edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fwl/cfwl_edit.cpp') diff --git a/xfa/fwl/cfwl_edit.cpp b/xfa/fwl/cfwl_edit.cpp index 79b0b2d366..acd5672227 100644 --- a/xfa/fwl/cfwl_edit.cpp +++ b/xfa/fwl/cfwl_edit.cpp @@ -688,7 +688,7 @@ void CFWL_Edit::UpdateEditParams() { params.dwFontColor = theme->GetTextColor(&part); params.fLineSpace = theme->GetLineHeight(&part); - CFGAS_GEFont* pFont = theme->GetFont(&part); + CFX_RetainPtr pFont = theme->GetFont(&part); if (!pFont) return; -- cgit v1.2.3