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

Side by Side Diff: webkit/plugins/ppapi/message_channel.cc

Issue 6733026: Fix my memory leak in MessageChannel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/heapcheck/suppressions.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/plugins/ppapi/message_channel.h" 5 #include "webkit/plugins/ppapi/message_channel.h"
6 6
7 #include <cstdlib> 7 #include <cstdlib>
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 npvariant_args, 335 npvariant_args,
336 sizeof(npvariant_args)/sizeof(*npvariant_args), 336 sizeof(npvariant_args)/sizeof(*npvariant_args),
337 &result_var); 337 &result_var);
338 } 338 }
339 339
340 void MessageChannel::PostMessageToNative(PP_Var message_data) { 340 void MessageChannel::PostMessageToNative(PP_Var message_data) {
341 instance_->HandleMessage(message_data); 341 instance_->HandleMessage(message_data);
342 } 342 }
343 343
344 MessageChannel::~MessageChannel() { 344 MessageChannel::~MessageChannel() {
345 WebBindings::releaseObject(np_object_);
345 WebBindings::releaseVariantValue(&onmessage_invoker_); 346 WebBindings::releaseVariantValue(&onmessage_invoker_);
346 } 347 }
347 348
348 } // namespace ppapi 349 } // namespace ppapi
349 } // namespace webkit 350 } // namespace webkit
350 351
OLDNEW
« no previous file with comments | « tools/heapcheck/suppressions.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698