From fe91c6c8211cec39f871d9202556e1957bf81983 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 16 May 2017 15:33:20 -0700 Subject: Be skeptical of bare |new|s. In particular, prefer an explicit .release() call when handing ownership of an object to a caller across a C-API. Change-Id: Ic3784e9d0b2d378a08d388989eaea7c9166bacd1 Reviewed-on: https://pdfium-review.googlesource.com/5470 Commit-Queue: Tom Sepez Reviewed-by: Lei Zhang --- public/fpdf_formfill.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'public/fpdf_formfill.h') diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h index 09b80eaf90..65be850b36 100644 --- a/public/fpdf_formfill.h +++ b/public/fpdf_formfill.h @@ -1687,15 +1687,16 @@ FPDF_Widget_ReplaceSpellCheckWord(FPDF_DOCUMENT document, /** * Function: FPDF_Widget_GetSpellCheckWords * This method will implement the spell check feature for the specified - *xfa field. + * xfa field. * Parameters: - * document - Handle to document. Returned by - *FPDF_LoadDocument function. + * document - Handle to document as returned by + * FPDF_LoadDocument function. * hWidget - Handle to the xfa field. * x - The x value of the specified point. * y - The y value of the specified point. * stringHandle - Pointer to FPDF_STRINGHANDLE to receive the - *speck check text buffer, in UTF-16LE format. + * speck check text buffer, in UTF-16LE format. + * Caller must free using FPDF_StringHandleRelease. * Return Value: * None. **/ -- cgit v1.2.3