diff options
Diffstat (limited to 'o3d/plugin')
-rw-r--r-- | o3d/plugin/cross/o3d_glue.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/o3d/plugin/cross/o3d_glue.cc b/o3d/plugin/cross/o3d_glue.cc index 8be6c18..d064f00 100644 --- a/o3d/plugin/cross/o3d_glue.cc +++ b/o3d/plugin/cross/o3d_glue.cc @@ -215,10 +215,13 @@ void PluginObject::TearDown() { stream_manager_.reset(NULL); delete client_; + client_ = NULL; + // Release the graphics context before deletion. DeleteRenderer(); delete features_; + features_ = NULL; // There is a reference cycle between the V8 bridge and the plugin. // Explicitly remove all V8 references during tear-down, so that the cycle is |