From 2c115d829d3560fd5082500c552dfe38850881ec Mon Sep 17 00:00:00 2001 From: Jun Fang Date: Tue, 23 Feb 2016 09:36:10 +0800 Subject: Resolve heap-use-after-free in CFX_WideString::~CFX_WideString() BUG=pdfium:402 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1719803002 . --- xfa/include/fwl/lightwidget/listbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/include/fwl') diff --git a/xfa/include/fwl/lightwidget/listbox.h b/xfa/include/fwl/lightwidget/listbox.h index 09bc018a63..b30f0f6739 100644 --- a/xfa/include/fwl/lightwidget/listbox.h +++ b/xfa/include/fwl/lightwidget/listbox.h @@ -26,7 +26,7 @@ class CFWL_ListBox : public CFWL_Widget { FWL_HLISTITEM AddString(const CFX_WideStringC& wsAdd, FX_BOOL bSelect = FALSE); FX_BOOL DeleteString(FWL_HLISTITEM hItem); - FX_BOOL DeleteAll(); + void DeleteAll(); int32_t CountSelItems(); FWL_HLISTITEM GetSelItem(int32_t nIndexSel); int32_t GetSelIndex(int32_t nIndex); -- cgit v1.2.3