diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-20 18:08:16 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-20 18:08:16 +0200 |
commit | 9dce66f58910b0d1363be3a8e3b5232d79692516 (patch) | |
tree | 19bcf01fa0461ea1bda12a2526a8ddcde4fc2ca0 /dom/canvas/WebGLObjectModel.h | |
parent | f046b91738bb5518d195dbce5aa0df55ff997c3a (diff) | |
download | UXP-9dce66f58910b0d1363be3a8e3b5232d79692516.tar UXP-9dce66f58910b0d1363be3a8e3b5232d79692516.tar.gz UXP-9dce66f58910b0d1363be3a8e3b5232d79692516.tar.lz UXP-9dce66f58910b0d1363be3a8e3b5232d79692516.tar.xz UXP-9dce66f58910b0d1363be3a8e3b5232d79692516.zip |
Use WeakPtr for extension parent pointer.
Diffstat (limited to 'dom/canvas/WebGLObjectModel.h')
-rw-r--r-- | dom/canvas/WebGLObjectModel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/canvas/WebGLObjectModel.h b/dom/canvas/WebGLObjectModel.h index b18b790c0..6371c7b03 100644 --- a/dom/canvas/WebGLObjectModel.h +++ b/dom/canvas/WebGLObjectModel.h @@ -6,8 +6,8 @@ #ifndef WEBGLOBJECTMODEL_H_ #define WEBGLOBJECTMODEL_H_ +#include "mozilla/WeakPtr.h" #include "nsCycleCollectionNoteChild.h" - #include "WebGLTypes.h" namespace mozilla { @@ -24,7 +24,7 @@ class WebGLContext; class WebGLContextBoundObject { public: - WebGLContext* const mContext; + const WeakPtr<WebGLContext> mContext; private: const uint32_t mContextGeneration; |