| Index: Source/modules/webgl/WebGLSync.cpp
|
| diff --git a/Source/modules/webgl/WebGLSync.cpp b/Source/modules/webgl/WebGLSync.cpp
|
| index 5d7dc9bb8e2e2379a3258b3d8887e5828c0df037..d98c2f5d2e22a4a1df3f6fb10f4fb21cffe56f6c 100644
|
| --- a/Source/modules/webgl/WebGLSync.cpp
|
| +++ b/Source/modules/webgl/WebGLSync.cpp
|
| @@ -12,7 +12,13 @@
|
|
|
| WebGLSync::~WebGLSync()
|
| {
|
| - // See the comment in WebGLObject::detachAndDeleteObject().
|
| + // Always call detach here to ensure that platform object deletion
|
| + // happens with Oilpan enabled. It keeps the code regular to do it
|
| + // with or without Oilpan enabled.
|
| + //
|
| + // See comment in WebGLBuffer's destructor for additional
|
| + // information on why this is done for WebGLSharedObject-derived
|
| + // objects.
|
| detachAndDeleteObject();
|
| }
|
|
|
|
|