Index: Source/core/html/canvas/WebGLQuery.cpp |
diff --git a/Source/core/html/canvas/WebGLQuery.cpp b/Source/core/html/canvas/WebGLQuery.cpp |
index eebca4ed1f02b0818a835561665be82296613936..f62268e7a63361359b0e1e0d02f4832091fe3a5c 100644 |
--- a/Source/core/html/canvas/WebGLQuery.cpp |
+++ b/Source/core/html/canvas/WebGLQuery.cpp |
@@ -17,7 +17,14 @@ PassRefPtrWillBeRawPtr<WebGLQuery> WebGLQuery::create(WebGL2RenderingContextBase |
WebGLQuery::~WebGLQuery() |
{ |
- 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(); |
haraken
2015/02/10 08:44:51
Just help me understand: Why is deleteObject(0) en
sof
2015/02/10 08:50:50
Did you read the above comment and look up the ~We
haraken
2015/02/10 08:55:33
Thanks, got it!
|
} |
WebGLQuery::WebGLQuery(WebGL2RenderingContextBase* ctx) |