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

Issue 8513019: Valgrind: Fix a leak in GetValueFromDictionary for cocoa. (Closed)

Created:
9 years, 1 month ago by James Hawkins
Modified:
9 years, 1 month ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Valgrind: Fix a leak in GetValueFromDictionary for cocoa. BUG=none TEST=none R=mark@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110359

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M base/mac/foundation_util.mm View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
James Hawkins
9 years, 1 month ago (2011-11-16 19:06:34 UTC) #1
Mark Mentovai
Thank you. LGTM.
9 years, 1 month ago (2011-11-16 19:08:31 UTC) #2
Mark Mentovai
+kushi.p as FYI.
9 years, 1 month ago (2011-11-16 19:09:04 UTC) #3
KushalP
On 2011/11/16 19:09:04, Mark Mentovai wrote: > +kushi.p as FYI. Can you clear something up ...
9 years, 1 month ago (2011-11-16 19:56:40 UTC) #4
Mark Mentovai
9 years, 1 month ago (2011-11-16 20:00:51 UTC) #5
That’s correct. We use ScopedCFTypeRef<> to ensure that the object gets released
even if someone comes along in the future and adds an early return. It’s also
generally cleaner to not have to maintain gross return-path code. If we were
using C++ exceptions (we’re not), ScopedCFTypeRef<> would be the only way to
ensure that the object was released.

Powered by Google App Engine
This is Rietveld 408576698