Index: Source/core/html/canvas/WebGLTransformFeedback.cpp |
diff --git a/Source/core/html/canvas/WebGLTransformFeedback.cpp b/Source/core/html/canvas/WebGLTransformFeedback.cpp |
index 634958b2cc23b81397859a22b68a45411b2fc860..0f1ecc9929754fe47d925f1a252732b53541611f 100644 |
--- a/Source/core/html/canvas/WebGLTransformFeedback.cpp |
+++ b/Source/core/html/canvas/WebGLTransformFeedback.cpp |
@@ -17,7 +17,14 @@ PassRefPtrWillBeRawPtr<WebGLTransformFeedback> WebGLTransformFeedback::create(We |
WebGLTransformFeedback::~WebGLTransformFeedback() |
{ |
- deleteObject(0); |
+ // 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(); |
} |
WebGLTransformFeedback::WebGLTransformFeedback(WebGL2RenderingContextBase* ctx) |