diff options
Diffstat (limited to 'ppapi/proxy/host_var_serialization_rules.cc')
-rw-r--r-- | ppapi/proxy/host_var_serialization_rules.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ppapi/proxy/host_var_serialization_rules.cc b/ppapi/proxy/host_var_serialization_rules.cc index 52b2cbc..d6b5677 100644 --- a/ppapi/proxy/host_var_serialization_rules.cc +++ b/ppapi/proxy/host_var_serialization_rules.cc @@ -35,8 +35,8 @@ PP_Var HostVarSerializationRules::BeginReceiveCallerOwned( } void HostVarSerializationRules::EndReceiveCallerOwned(const PP_Var& var) { - if (var.type == PP_VARTYPE_STRING) { - // Destroy the string. + if (var.type != PP_VARTYPE_OBJECT && var.type >= PP_VARTYPE_STRING) { + // Release our reference to the local Var. PpapiGlobals::Get()->GetVarTracker()->ReleaseVar(var); } } |