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

Issue 11458003: Remove scoped_refptr::release which is confusing and causes leaks. (Closed)

Created:
8 years ago by piman
Modified:
8 years ago
Reviewers:
brettw
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, feature-media-reviews_chromium.org, jam, gavinp+memory_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, cc-bugs_chromium.org, erikwright+watch_chromium.org
Visibility:
Public.

Description

Remove scoped_refptr::release which is confusing and causes leaks. This fixes one leak in production and one leak in tests. The rest of the changes now show an explicit AddRef/Release pair, instead of a .release combined with a ->Release(). BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171893

Patch Set 1 #

Patch Set 2 : for trybots #

Patch Set 3 : fix mac #

Total comments: 4

Patch Set 4 : fix bad code patterns #

Patch Set 5 : duh #

Total comments: 2

Patch Set 6 : just remove scoped_refptr::release #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -11 lines) Patch
M base/memory/ref_counted.h View 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
michaeln
I didn't look at all of the changes, but as coded right now, looks like ...
8 years ago (2012-12-06 00:26:11 UTC) #1
piman
Note, I will upload separate CLs for the cleanup in each of the subsystems (based ...
8 years ago (2012-12-06 04:56:27 UTC) #2
danakj
https://codereview.chromium.org/11458003/diff/5031/cc/occlusion_tracker_unittest.cc File cc/occlusion_tracker_unittest.cc (right): https://codereview.chromium.org/11458003/diff/5031/cc/occlusion_tracker_unittest.cc#newcode138 cc/occlusion_tracker_unittest.cc:138: layer = NULL; The NULL assignment seems unneeded. The ...
8 years ago (2012-12-06 05:00:08 UTC) #3
piman
https://codereview.chromium.org/11458003/diff/5031/cc/occlusion_tracker_unittest.cc File cc/occlusion_tracker_unittest.cc (right): https://codereview.chromium.org/11458003/diff/5031/cc/occlusion_tracker_unittest.cc#newcode138 cc/occlusion_tracker_unittest.cc:138: layer = NULL; On 2012/12/06 05:00:09, danakj wrote: > ...
8 years ago (2012-12-06 05:15:59 UTC) #4
piman
Moved changes that remove uses of ::release into separate CLs to avoid O(n^2) reviews. This ...
8 years ago (2012-12-06 21:21:44 UTC) #5
brettw
lgtm
8 years ago (2012-12-07 20:05:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/11458003/15001
8 years ago (2012-12-07 21:00:49 UTC) #7
commit-bot: I haz the power
8 years ago (2012-12-08 00:11:05 UTC) #8
Message was sent while issue was closed.
Change committed as 171893

Powered by Google App Engine
This is Rietveld 408576698