summaryrefslogtreecommitdiffstats
path: root/dom/canvas/WebGLExtensionDrawBuffers.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-07-20 18:08:16 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-07-20 18:08:16 +0200
commit9dce66f58910b0d1363be3a8e3b5232d79692516 (patch)
tree19bcf01fa0461ea1bda12a2526a8ddcde4fc2ca0 /dom/canvas/WebGLExtensionDrawBuffers.cpp
parentf046b91738bb5518d195dbce5aa0df55ff997c3a (diff)
downloadUXP-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/WebGLExtensionDrawBuffers.cpp')
-rw-r--r--dom/canvas/WebGLExtensionDrawBuffers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/dom/canvas/WebGLExtensionDrawBuffers.cpp b/dom/canvas/WebGLExtensionDrawBuffers.cpp
index 27aa76cc7..6f386621f 100644
--- a/dom/canvas/WebGLExtensionDrawBuffers.cpp
+++ b/dom/canvas/WebGLExtensionDrawBuffers.cpp
@@ -36,7 +36,9 @@ void
WebGLExtensionDrawBuffers::DrawBuffersWEBGL(const dom::Sequence<GLenum>& buffers)
{
if (mIsLost) {
- mContext->ErrorInvalidOperation("drawBuffersWEBGL: Extension is lost.");
+ if (mContext) {
+ mContext->ErrorInvalidOperation("drawBuffersWEBGL: Extension is lost.");
+ }
return;
}