diff options
-rw-r--r-- | ppapi/proxy/ppb_var_deprecated_proxy.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ppapi/proxy/ppb_var_deprecated_proxy.cc b/ppapi/proxy/ppb_var_deprecated_proxy.cc index 2cd5ed0..3cef43a 100644 --- a/ppapi/proxy/ppb_var_deprecated_proxy.cc +++ b/ppapi/proxy/ppb_var_deprecated_proxy.cc @@ -269,8 +269,10 @@ PP_Var CreateObject(PP_Instance instance, PP_Var ret_var = result.Return(dispatcher); // Register this object as being implemented by the plugin. - tracker->PluginImplementedObjectCreated(instance, ret_var, - ppp_class, ppp_class_data); + if (ret_var.type == PP_VARTYPE_OBJECT) { + tracker->PluginImplementedObjectCreated(instance, ret_var, + ppp_class, ppp_class_data); + } return ret_var; } |