From c9aa2f8bfdf74ffae633c7bb1a4d908dda9caed5 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 2 Jul 2018 23:08:53 +0000 Subject: Virtualize Observable::ObservedPtr::OnDestroy() for CPDF_Avail cleanup This enables more complicated cleanup when an observed object is destroyed. Use it to make documents observable and to allow the CPDF_Avail to cleanup without the need for intermediate class. Change-Id: I3a8e758b7ff542e0a58710eff1ac8017205cbd45 Reviewed-on: https://pdfium-review.googlesource.com/36373 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- fxjs/cjs_runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fxjs') diff --git a/fxjs/cjs_runtime.cpp b/fxjs/cjs_runtime.cpp index d7ee93ff2c..f867e31340 100644 --- a/fxjs/cjs_runtime.cpp +++ b/fxjs/cjs_runtime.cpp @@ -79,7 +79,7 @@ CJS_Runtime::CJS_Runtime(CPDFSDK_FormFillEnvironment* pFormFillEnv) } CJS_Runtime::~CJS_Runtime() { - NotifyObservedPtrs(); + NotifyObservers(); ReleaseEngine(); if (m_isolateManaged) { GetIsolate()->Dispose(); -- cgit v1.2.3