diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-20 18:08:16 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-22 12:21:53 +0200 |
commit | d3406cafff5e5c284f07419043eec4ae810db63a (patch) | |
tree | 1b3b6163368fec80db2de01f6648a0c881d15afa /dom/canvas/WebGLExtensionLoseContext.cpp | |
parent | 0cd2ef552db767ada217c3f61fde65dc5cecc1ef (diff) | |
download | UXP-d3406cafff5e5c284f07419043eec4ae810db63a.tar UXP-d3406cafff5e5c284f07419043eec4ae810db63a.tar.gz UXP-d3406cafff5e5c284f07419043eec4ae810db63a.tar.lz UXP-d3406cafff5e5c284f07419043eec4ae810db63a.tar.xz UXP-d3406cafff5e5c284f07419043eec4ae810db63a.zip |
Use WeakPtr for extension parent pointer.
Diffstat (limited to 'dom/canvas/WebGLExtensionLoseContext.cpp')
-rw-r--r-- | dom/canvas/WebGLExtensionLoseContext.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/canvas/WebGLExtensionLoseContext.cpp b/dom/canvas/WebGLExtensionLoseContext.cpp index 020731e63..41f1633d8 100644 --- a/dom/canvas/WebGLExtensionLoseContext.cpp +++ b/dom/canvas/WebGLExtensionLoseContext.cpp @@ -22,12 +22,14 @@ WebGLExtensionLoseContext::~WebGLExtensionLoseContext() void WebGLExtensionLoseContext::LoseContext() { + if (!mContext) return; mContext->LoseContext(); } void WebGLExtensionLoseContext::RestoreContext() { + if (!mContext) return; mContext->RestoreContext(); } |