diff options
author | Tommi Komulainen <tko@litl.com> | 2009-08-25 10:21:13 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marcopg@litl.com> | 2010-07-27 22:04:22 (GMT) |
commit | e1b507d7c507458c54e1b11d8d070927bf13ca68 (patch) | |
tree | 6ac2f70cc092c4fd501ca46ea56233f6f16b3795 | |
parent | 1ebd7d138620e3a0cf676a7067c4614a133eee65 (diff) |
browser-plugin: release last reference to ScriptableObject on destroy
-rw-r--r-- | browser-plugin/plugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/browser-plugin/plugin.cpp b/browser-plugin/plugin.cpp index 587c7f7..c8a7de7 100644 --- a/browser-plugin/plugin.cpp +++ b/browser-plugin/plugin.cpp @@ -55,6 +55,11 @@ Plugin::Plugin (NPP instance) : mInstance (instance), Plugin::~Plugin () { ClearLoadJob (); + + if (mScriptableObject) { + NPN_ReleaseObject (mScriptableObject); + mScriptableObject = 0; + } } void |