Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.cc |
=================================================================== |
--- ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.cc (revision 98247) |
+++ ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.cc (working copy) |
@@ -146,6 +146,11 @@ |
PluginGraphics3D::PluginGraphics3D() : instance_id_(0) { } |
PluginGraphics3D::~PluginGraphics3D() { |
+ DebugPrintf("PluginGraphics3D::~PluginGraphics3D()\n"); |
+ // Explicitly tear down scopted pointers; ordering below matters. |
+ gles2_implementation_.reset(); |
+ gles2_helper_.reset(); |
+ command_buffer_.reset(); |
// Invalidate the cache. |
cached_graphics3d_id = 0; |
cached_implementation = NULL; |