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

Unified Diff: ppapi/cpp/private/content_decryptor_private.cc

Issue 10909068: Fix resource leaks in CDM implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Same patchset as number 8, hopefully this one is viewable... Created 8 years, 3 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/cpp/private/content_decryptor_private.cc
diff --git a/ppapi/cpp/private/content_decryptor_private.cc b/ppapi/cpp/private/content_decryptor_private.cc
index 633215a6d4cfcb0284a7e51d76bf6a9259150d32..6df9c2df0da640b74d505aba25716b0ff90de5a5 100644
--- a/ppapi/cpp/private/content_decryptor_private.cc
+++ b/ppapi/cpp/private/content_decryptor_private.cc
@@ -101,7 +101,7 @@ PP_Bool Decrypt(PP_Instance instance,
if (!object)
return PP_FALSE;
- pp::Buffer_Dev encrypted_block(encrypted_resource);
+ pp::Buffer_Dev encrypted_block(pp::PassRef(), encrypted_resource);
return PP_FromBool(
static_cast<ContentDecryptor_Private*>(object)->Decrypt(
@@ -117,7 +117,7 @@ PP_Bool DecryptAndDecode(PP_Instance instance,
if (!object)
return PP_FALSE;
- pp::Buffer_Dev encrypted_block(encrypted_resource);
+ pp::Buffer_Dev encrypted_block(pp::PassRef(), encrypted_resource);
return PP_FromBool(
static_cast<ContentDecryptor_Private*>(object)->DecryptAndDecode(

Powered by Google App Engine
This is Rietveld 408576698