| Index: Source/modules/webgl/WebGLContextObject.cpp
|
| diff --git a/Source/modules/webgl/WebGLContextObject.cpp b/Source/modules/webgl/WebGLContextObject.cpp
|
| index 4278843a94a0f412d5edbc8de1483e29b1662bf7..e1359f0c1220bbfb37173d2e8137b9f63319e520 100644
|
| --- a/Source/modules/webgl/WebGLContextObject.cpp
|
| +++ b/Source/modules/webgl/WebGLContextObject.cpp
|
| @@ -39,6 +39,10 @@
|
|
|
| WebGLContextObject::~WebGLContextObject()
|
| {
|
| +#if !ENABLE(OILPAN)
|
| + if (m_context)
|
| + m_context->removeContextObject(this);
|
| +#endif
|
| }
|
|
|
| void WebGLContextObject::detachContext()
|
| @@ -53,7 +57,7 @@
|
|
|
| WebGraphicsContext3D* WebGLContextObject::getAWebGraphicsContext3D() const
|
| {
|
| - return m_context ? m_context->webContext() : nullptr;
|
| + return m_context ? m_context->webContext() : 0;
|
| }
|
|
|
| DEFINE_TRACE(WebGLContextObject)
|
|
|