summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'pdf')
-rw-r--r--pdf/instance.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/pdf/instance.cc b/pdf/instance.cc
index d779089..9cb7829 100644
--- a/pdf/instance.cc
+++ b/pdf/instance.cc
@@ -307,6 +307,10 @@ Instance::Instance(PP_Instance instance)
}
Instance::~Instance() {
+ if (timer_pending_) {
+ timer_factory_.CancelAll();
+ timer_pending_ = false;
+ }
// The engine may try to access this instance during its destruction.
// Make sure this happens early while the instance is still intact.
engine_.reset();