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

Issue 345058: Fix a memory leak in ExtensionMessageService. (Closed)

Created:
11 years, 1 month ago by Matt Perry
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix a memory leak in ExtensionMessageService. Also grasp at straws trying to fix a crash bug. BUG=21201 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31024

Patch Set 1 #

Patch Set 2 : accidental change #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -7 lines) Patch
M chrome/browser/extensions/extension_message_service.h View 2 chunks +1 line, -2 lines 2 comments Download
M chrome/browser/extensions/extension_message_service.cc View 5 chunks +9 lines, -5 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
Matt Perry
11 years, 1 month ago (2009-11-04 02:28:38 UTC) #1
Erik does not do reviews
http://codereview.chromium.org/345058/diff/5/1004 File chrome/browser/extensions/extension_message_service.cc (right): http://codereview.chromium.org/345058/diff/5/1004#newcode316 Line 316: CHECK(receiver.sender); remove redundant CHECK http://codereview.chromium.org/345058/diff/5/1005 File chrome/browser/extensions/extension_message_service.h (right): ...
11 years, 1 month ago (2009-11-04 17:00:33 UTC) #2
Matt Perry
http://codereview.chromium.org/345058/diff/5/1005 File chrome/browser/extensions/extension_message_service.h (right): http://codereview.chromium.org/345058/diff/5/1005#newcode132 Line 132: typedef std::map<int, MessageChannel*> MessageChannelMap; On 2009/11/04 17:00:33, Erik ...
11 years, 1 month ago (2009-11-04 18:47:46 UTC) #3
Erik does not do reviews
11 years, 1 month ago (2009-11-04 19:43:37 UTC) #4
ok.  LGTM


On Wed, Nov 4, 2009 at 10:47 AM,  <mpcomplete@chromium.org> wrote:
>
> http://codereview.chromium.org/345058/diff/5/1005
> File chrome/browser/extensions/extension_message_service.h (right):
>
> http://codereview.chromium.org/345058/diff/5/1005#newcode132
> Line 132: typedef std::map<int, MessageChannel*> MessageChannelMap;
> On 2009/11/04 17:00:33, Erik Kay wrote:
>>
>> I think I'm missing something about the change away from linked_ptr.
>
> Isn't this
>>
>> equivalent to the old code (but less automatic)?
>
> Yes, theoretically. This is the "grasping at straws" part. I'm testing
> if there's something about my usage of linked_ptr that may have caused a
> double free. I couldn't find anything else in this file that was
> suspect. Json parsing and serialization held up to fuzzing under purify.
>
> http://codereview.chromium.org/345058
>

Powered by Google App Engine
This is Rietveld 408576698