Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: ppapi/proxy/host_var_serialization_rules.cc

Issue 9373032: PPAPI: Proxy VarArrayBuffer for out-of-process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/host_var_serialization_rules.cc
diff --git a/ppapi/proxy/host_var_serialization_rules.cc b/ppapi/proxy/host_var_serialization_rules.cc
index 52b2cbcc6b3a1696fbba658337d296577f104e9e..8637f1b3f8ebb8f9b2cf263ec94be7bde9c56e1d 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_STRING) {
+ // Release our reference to the local Var.
PpapiGlobals::Get()->GetVarTracker()->ReleaseVar(var);
}
}

Powered by Google App Engine
This is Rietveld 408576698