diff options
Diffstat (limited to 'V8Binding/binding/npruntime.cpp')
-rw-r--r-- | V8Binding/binding/npruntime.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/V8Binding/binding/npruntime.cpp b/V8Binding/binding/npruntime.cpp index f32c63d..6a2faeb 100644 --- a/V8Binding/binding/npruntime.cpp +++ b/V8Binding/binding/npruntime.cpp @@ -411,7 +411,7 @@ void _NPN_UnregisterObject(NPObject* obj) { g_live_objects.remove(sub_object); // Remove the JS references to the object. - ForgetV8ObjectForNPObject(sub_object); + forgetV8ObjectForNPObject(sub_object); ASSERT(set->size() < size); } @@ -425,8 +425,9 @@ void _NPN_UnregisterObject(NPObject* obj) { list->remove(obj); } } + g_live_objects.remove(obj); - ForgetV8ObjectForNPObject(obj); + forgetV8ObjectForNPObject(obj); } bool _NPN_IsAlive(NPObject* obj) { |