summaryrefslogtreecommitdiffstats
path: root/dom/base/DOMIntersectionObserver.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-01-18 19:09:30 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-01-18 19:09:30 +0100
commitef8a5dca4f49f859c5b5a7fa9e079b2b7b9bf8fa (patch)
treea7b3a29171ddabcb3f06d86b835f13e84c715d84 /dom/base/DOMIntersectionObserver.h
parentf6ef8d8ca7ed96d699c28914fc590b0604520fd0 (diff)
downloadUXP-ef8a5dca4f49f859c5b5a7fa9e079b2b7b9bf8fa.tar
UXP-ef8a5dca4f49f859c5b5a7fa9e079b2b7b9bf8fa.tar.gz
UXP-ef8a5dca4f49f859c5b5a7fa9e079b2b7b9bf8fa.tar.lz
UXP-ef8a5dca4f49f859c5b5a7fa9e079b2b7b9bf8fa.tar.xz
UXP-ef8a5dca4f49f859c5b5a7fa9e079b2b7b9bf8fa.zip
Rewrite IntersectionObserver list handling to be more robust.
Tag #935.
Diffstat (limited to 'dom/base/DOMIntersectionObserver.h')
-rw-r--r--dom/base/DOMIntersectionObserver.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/dom/base/DOMIntersectionObserver.h b/dom/base/DOMIntersectionObserver.h
index 414f21482..8674fe25d 100644
--- a/dom/base/DOMIntersectionObserver.h
+++ b/dom/base/DOMIntersectionObserver.h
@@ -109,7 +109,9 @@ protected:
class DOMIntersectionObserver final : public nsISupports,
public nsWrapperCache
{
- virtual ~DOMIntersectionObserver() { }
+ virtual ~DOMIntersectionObserver() {
+ Disconnect();
+ }
public:
DOMIntersectionObserver(already_AddRefed<nsPIDOMWindowInner>&& aOwner,