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

Issue 10905128: Pepper WebSocket API: Fix memory leak issue (Closed)

Created:
8 years, 3 months ago by Takashi Toyoshima
Modified:
8 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Pepper WebSocket API: Fix memory leak issue - Browser callback should release PP_Var resource after serialization. - Fix pp::Var to release injected refcounted object. - Fix example to release resources before reusing it. BUG=146304 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=156235

Patch Set 1 #

Patch Set 2 : done #

Total comments: 10

Patch Set 3 : update #

Patch Set 4 : rebase #

Total comments: 6

Patch Set 5 : no leak! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -28 lines) Patch
M ppapi/cpp/private/var_private.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M ppapi/cpp/var.h View 1 2 3 4 4 chunks +7 lines, -4 lines 0 comments Download
M ppapi/cpp/var.cc View 1 2 3 4 2 chunks +17 lines, -21 lines 0 comments Download
M ppapi/cpp/var_array_buffer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ppapi/cpp/websocket.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_callback.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Takashi Toyoshima
I fixed memory leak issues. Could you review this change? The leak of browser_callback is ...
8 years, 3 months ago (2012-09-07 17:18:26 UTC) #1
dmichael (off chromium)
http://codereview.chromium.org/10905128/diff/7001/native_client_sdk/src/examples/websocket/websocket.cc File native_client_sdk/src/examples/websocket/websocket.cc (right): http://codereview.chromium.org/10905128/diff/7001/native_client_sdk/src/examples/websocket/websocket.cc#newcode100 native_client_sdk/src/examples/websocket/websocket.cc:100: pp::Var release(pp::PASS_REF, receive_var_.Detach()); What if we just make ReceiveMessage ...
8 years, 3 months ago (2012-09-07 18:36:58 UTC) #2
Takashi Toyoshima
Thanks. I revised my CL as follows. - Release reused Var::pp_var not in example side, ...
8 years, 3 months ago (2012-09-10 13:21:27 UTC) #3
dmichael (off chromium)
http://codereview.chromium.org/10905128/diff/6005/ppapi/cpp/var.cc File ppapi/cpp/var.cc (right): http://codereview.chromium.org/10905128/diff/6005/ppapi/cpp/var.cc#newcode106 ppapi/cpp/var.cc:106: needs_management_ = other.needs_management_; Shouldn't this always just be true, ...
8 years, 3 months ago (2012-09-10 16:21:13 UTC) #4
Takashi Toyoshima
Thank you. I fix the leak. http://codereview.chromium.org/10905128/diff/6005/ppapi/cpp/var.cc File ppapi/cpp/var.cc (right): http://codereview.chromium.org/10905128/diff/6005/ppapi/cpp/var.cc#newcode106 ppapi/cpp/var.cc:106: needs_management_ = other.needs_management_; ...
8 years, 3 months ago (2012-09-11 08:38:15 UTC) #5
dmichael (off chromium)
lgtm
8 years, 3 months ago (2012-09-11 15:11:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/10905128/2011
8 years, 3 months ago (2012-09-11 16:14:14 UTC) #7
commit-bot: I haz the power
Presubmit check for 10905128-2011 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-11 16:14:24 UTC) #8
Takashi Toyoshima
8 years, 3 months ago (2012-09-11 16:20:56 UTC) #9
Oops.
That happened also in cl upload.
OK, I'll use dcommit tomorrow morning.

Powered by Google App Engine
This is Rietveld 408576698